:root {
    --cherry: #7B2E2F;
    --cherry-dark: #5A1F20;
    --cherry-light: #8B3E3F;
    --cream: #F5F3F0;
    --beige: #F0EDE8;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --muted: #6B6B6B;
}

/* Base Typography */
body {
    font-family: 'Times New Roman', Times, serif;
    background: var(--white);
    color: var(--black);
    margin: 0;
    padding: 0;
}

.script {
    font-family: 'Great Vibes', 'Allura', cursive;
}

/* Tipografía Estandarizada */
.titulo-principal {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cherry);
    font-family: 'Times New Roman', serif;
    margin-bottom: 1rem;
}

.subtitulo {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
    font-family: 'Times New Roman', serif;
    margin-bottom: 1rem;
}

.texto-principal {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    font-family: 'Times New Roman', serif;
    margin-bottom: 1rem;
}

.boton-estandar {
    background: var(--cherry);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Times New Roman', serif;
    min-height: 44px;
    text-align: center;
    cursor: pointer;
}

.boton-estandar:hover {
    background: var(--cherry-dark);
    transform: translateY(-1px);
}

.boton-outline {
    background: transparent;
    color: var(--cherry);
    border: 2px solid var(--cherry);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Times New Roman', serif;
    min-height: 44px;
    text-align: center;
    cursor: pointer;
}

.boton-outline:hover {
    background: var(--cherry);
    color: var(--white);
}

/* Navegación superior */
.hover\\:text-cherry:hover {
    color: var(--cherry) !important;
}

/* Mobile Typography Optimization */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .titulo-principal {
        font-size: 1.75rem;
    }

    .subtitulo {
        font-size: 1.25rem;
    }

    .texto-principal {
        font-size: 0.9rem;
    }
}

/* Base Colors */
.text-cherry { color: var(--cherry); }
.bg-cherry { background-color: var(--cherry); }
.bg-cream { background-color: var(--cream); }
.bg-beige { background-color: var(--beige); }
.bg-white { background-color: var(--white); }
.text-black { color: var(--black); }
.text-muted { color: var(--muted); }
.border-cherry { border-color: var(--cherry); }

/* Clean Header - Transparent over video */
.clean-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Clean Menu */
.menu-item {
    transition: color 0.3s ease;
    padding: 8px 16px;
    color: var(--black);
}

.menu-item:hover {
    color: var(--cherry);
}

/* Buttons */
.btn-cherry {
    background: var(--cherry);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-cherry:hover {
    background: var(--cherry-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--cherry);
    padding: 12px 24px;
    border: 2px solid var(--cherry);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--cherry);
    color: var(--white);
}

/* Clean Cards */
.card-premium {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--beige);
    transition: all 0.3s ease;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Text Styles */
.hero-title {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    letter-spacing: 0.01em;
}

/* Section Separators */
.section-separator {
    height: 1px;
    background: var(--beige);
    margin: 20px 0;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab Styles */
.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--beige);
    background: var(--white);
    color: var(--black);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-btn.active {
    background: var(--cherry);
    color: var(--white);
    border-color: var(--cherry);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Hero Section Layout */
.hero-section {
    min-height: 80vh;
}

/* Video Background Fullscreen */
.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.8) contrast(1.1);
}

/* Hero video positioning for desktop */
.hero-video-desktop {
    object-position: center top;
}

/* Hero image mobile - Natural size, no cropping */
.hero-image-mobile {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure video quality */
video {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* Animaciones fadeInUp */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-up-delay-1 {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-up-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-fade-in-up-delay-3 {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.script {
  font-family: 'Great Vibes', cursive;
}

/* Hover effects adicionales */
.animate-fade-in-up-delay-3 a:hover {
  transform: translateY(-2px) scale(1.05);
  transition: all 0.3s ease;
}

/* Scrolling Text Animation */
.marquee-container {
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  animation: scroll 40s linear infinite;
  width: fit-content;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Header Optimization */
    .hero-section {
        min-height: 70vh;
    }

    /* Typography Mobile Optimization */
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        letter-spacing: 1px !important;
    }

    h2 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }

    h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }

    /* Button Optimization for Touch */
    .btn-cherry, .btn-outline {
        padding: 14px 28px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Card Optimization */
    .card-premium {
        padding: 20px !important;
        margin-bottom: 16px;
    }

    /* Navigation Mobile Improvement */
    #mobile-menu {
        min-width: 280px !important;
        max-width: 90vw;
        right: 0;
        top: 100%;
        margin-top: 8px !important;
    }

    /* Form Optimization */
    input, button {
        min-height: 44px;
        touch-action: manipulation;
        font-size: 16px !important;
    }

    /* Spacing Optimization */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Text Readability */
    p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px;
    }

    /* Grid Optimization */
    .grid {
        gap: 16px !important;
    }

    /* Image Optimization */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Marquee Text Mobile */
    .marquee-content {
        animation: scroll 30s linear infinite;
    }

    /* Mobile image optimization */
    .hero-image-mobile {
        width: 100% !important;
        height: auto !important;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* iPhone and Small Mobile Devices */
@media (max-width: 480px) {
    /* Extra small screens */
    h1 {
        font-size: 1.5rem !important;
        letter-spacing: 0.5px !important;
    }

    .script {
        font-size: 1.25rem !important;
    }

    /* Hero Title Mobile */
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    /* Button Stack on Very Small Screens */
    .flex-col.sm\\:flex-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Better touch targets */
    .menu-item {
        padding: 12px 20px !important;
        font-size: 16px !important;
    }

    /* Mobile Menu Optimization */
    #mobile-menu {
        min-width: 260px !important;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 90vh;
    }

    .hero-image-mobile {
        width: 100% !important;
        height: auto !important;
    }
}

/* Action Boxes Carousel Styles */
#carousel-container {
    max-width: 100%;
    margin: 0 auto;
}

.action-box {
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.action-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(123, 46, 47, 0.15);
}

/* Carousel Indicators */
.indicator {
    cursor: pointer;
}

.indicator.active {
    background-color: var(--cherry);
}

.indicator:hover {
    background-color: var(--cherry-light);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .action-box {
        width: 280px !important;
        padding: 24px !important;
        margin: 0 12px !important;
    }

    .action-box h4 {
        font-size: 1.5rem !important;
    }

    .action-box .script {
        font-size: 1.25rem !important;
    }

    .action-box p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .action-box {
        width: 250px !important;
        padding: 20px !important;
    }
}