/* 
   NutriBel by JMA Agronegocios - Finca Style Redesign
   CSS Custom Properties & Reset
*/

:root {
    /* Color Palette (Teal & Orange) */
    --clr-primary: #0b828c;
    /* Turquesa / Teal (de la imagen) */
    --clr-primary-light: #0faab5;
    /* Turquesa claro */
    --clr-secondary: #ff4500;
    /* Naranja / Rojo (de la imagen) */
    --clr-secondary-dark: #cc3700;
    --clr-accent: #ff4500;
    /* Naranja / Rojo */
    --clr-accent-hover: #d93a00;

    /* Neutral Colors / Backgrounds */
    --clr-bg: #f8f9fa;
    --clr-bg-light: #ffffff;
    --clr-text: #1a1a1a;
    /* Darker for higher contrast */
    --clr-text-light: #6c757d;
    --clr-border: #e9ecef;
    --clr-white: #ffffff;

    /* Typography: Roboto & Montserrat */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Layout */
    --max-width: 1280px;
    /* Wider like Finca */
    --padding-x: 1.5rem;

    /* Shapes - Finca Style (Super Rounded) */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-pill: 500px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Smoother bounce */

    /* Shadows - Finca Floating Style */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow-orange: 0 10px 25px rgba(255, 69, 0, 0.3);
    --shadow-glow-teal: 0 10px 25px rgba(11, 130, 140, 0.3);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img,
picture {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--clr-primary);
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
}

.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

.relative-section {
    position: relative;
}

.relative-z {
    position: relative;
    z-index: 10;
}

.bg-light {
    background-color: var(--clr-bg);
    /* Use the off-white/gray color instead of pure white */
}

.bg-white {
    background-color: var(--clr-white);
}

/* Offset anchors for fixed header navigation */
#inicio,
#cobertura {
    scroll-margin-top: 30px;
}

#nosotros {
    scroll-margin-top: 100px;
}

#catalogo {
    scroll-margin-top: 10px;
}

#calidad {
    scroll-margin-top: 0px;
}

#contacto {
    scroll-margin-top: 30px;
}

#historia {
    scroll-margin-top: -30px;
}

/* Disable Historia visual animations: timeline items and region cards should be static.
       Keep counters working via JS only. */
.history-timeline,
.history-timeline.animate-line {
    animation: none !important;
    transition: none !important;
}

.timeline-item,
.region-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.timeline-item.reveal,
.region-card.reveal {
    opacity: 1 !important;
    transform: none !important;
}

.section-header {
    margin-bottom: 4rem;
}

.center-boxed {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--clr-primary);
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3.5rem;
    }
}

.section-header p {
    color: var(--clr-text-light);
    font-size: 1.25rem;
}

/* Animations Setup */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
    visibility: visible;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Pill Buttons (Finca Style) */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

.btn-pill {
    border-radius: var(--radius-pill);
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.btn-glow {
    box-shadow: var(--shadow-glow-orange);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--clr-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 69, 0, 0.4);
    color: var(--clr-white);
}

.btn-secondary {
    background-color: var(--clr-white);
    color: var(--clr-primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--clr-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.125rem;
    width: 100%;
}

@media (min-width: 768px) {
    .btn-large {
        width: auto;
    }
}

.block-full {
    width: 100%;
}

/* Header & Nav */
.header {
    background-color: var(--clr-white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.header.scrolled {
    height: 80px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition-normal);
}

.header.scrolled .header-content {
    height: 80px;
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--clr-primary);
    line-height: 1;
}

.logo-text .logo-accent {
    color: var(--clr-secondary);
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--clr-text-light);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--clr-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.header.scrolled .nav-menu {
    top: 80px;
    height: calc(100vh - 80px);
}

.nav-menu.active {
    left: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--clr-text);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--clr-primary);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--clr-primary);
    border-radius: 3px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-color: var(--clr-primary);
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -9px;
}

.hamburger::after {
    bottom: -9px;
}

.mobile-menu-btn.active .hamburger {
    background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-menu,
    .header.scrolled .nav-menu {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        gap: 2rem;
    }

    .nav-list {
        flex-direction: row;
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .btn-header {
        padding: 0.6rem 1.5rem;
    }
}

/* Hero Section (Oversized Typography & Overlay) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 90px;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero {
        padding-top: 130px;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 130, 140, 0.85) 0%, rgba(15, 170, 181, 0.7) 100%);
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle organic pattern / image placeholder */
    background-color: #222;
    background-image: radial-gradient(circle at center, #333 0, #000 100%);
    z-index: -2;
}

.hero-content {
    max-width: 1200px;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    width: 100%;
}

@media (min-width: 992px) {
    .two-columns-hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 4rem;
    }
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-text {
        align-items: flex-start;
    }
}

.hero-3d-model {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    min-height: 400px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .hero-3d-model {
        flex: 1;
        margin-top: 0;
        min-height: 600px;
    }
}

.product-3d-viewer {
    width: 100%;
    min-height: 400px;
    height: 100%;
    /* Subtle glow behind the 3D model */
    filter: drop-shadow(var(--shadow-glow-teal));
}

@media (min-width: 992px) {
    .product-3d-viewer {
        min-height: 600px;
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: var(--clr-white);
    font-weight: 800;
    border-radius: var(--radius-pill);
    margin-bottom: 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--clr-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-title .highlight {
    color: var(--clr-white);
    /* Kept white for contrast against teal bg */
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--clr-secondary);
    z-index: -1;
    border-radius: var(--radius-pill);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5.5rem;
        /* Oversized Finca Style */
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        max-width: none;
        width: auto;
    }
}

/* Wavy Dividers */
.custom-shape-divider-bottom-hero {
    position: absolute;
    bottom: -1px;
    /* Prevents gaps */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-hero svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

@media(min-width: 768px) {
    .custom-shape-divider-bottom-hero svg {
        height: 120px;
    }
}

.custom-shape-divider-bottom-hero .shape-fill {
    fill: var(--clr-white);
}

/* Divisor: Historia → Nosotros */
.custom-shape-divider-bottom-historia {
    position: relative;
    margin-top: -1px;
    left: 0;
    width: 100%;
    height: 64px;
    overflow: hidden;
    line-height: 0;
    background-color: var(--clr-bg);
}

.custom-shape-divider-bottom-historia::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--clr-white);
    clip-path: polygon(0 56%, 10% 42%, 22% 60%, 35% 38%, 48% 58%, 62% 36%, 75% 54%, 88% 34%, 100% 50%, 100% 100%, 0 100%);
    pointer-events: none;
}

.custom-shape-divider-bottom-historia svg {
    display: none;
}

@media(min-width: 768px) {
    .custom-shape-divider-bottom-historia {
        height: 78px;
    }
}

.custom-shape-divider-bottom-historia .shape-fill {
    fill: transparent;
}


/* Interactive Catalog (Pill Tabs) */
.tabs-pill-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-flip-hint {
    text-align: center;
    margin: -1.5rem 0 2rem 0;
    color: var(--clr-secondary);
    font-weight: 700;
    font-size: 0.95rem;
}

.tabs-pill-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.tab-pill-btn {
    padding: 1rem 2rem;
    background-color: var(--clr-white);
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--clr-text-light);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow: var(--shadow-sm);
}

.tab-pill-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-primary-light);
    color: var(--clr-primary);
}

.tab-pill-btn.active {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow-teal);
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.catalog .tab-icon,
.catalog .card-emblem {
    display: none !important;
}

.catalog .nutrition-grid {
    padding-top: 0;
}

.catalog .card-header {
    padding-top: 1.5rem;
}

.catalog .product-flip-card {
    cursor: pointer;
    perspective: 1200px;
}

.catalog .product-flip-card.is-flipped .product-card-inner {
    transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
    .catalog .product-flip-card:hover .product-card-inner {
        transform: rotateY(180deg);
    }
}

.catalog .product-card-inner {
    display: grid;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.catalog .product-card-face {
    grid-area: 1 / 1;
    border-radius: inherit;
    backface-visibility: hidden;
    overflow: hidden;
}

.catalog .product-card-back {
    transform: rotateY(180deg);
    background-color: var(--clr-white);
    display: flex;
    flex-direction: column;
}

.catalog .product-back-media {
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    background-color: var(--clr-bg);
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .catalog .product-back-media {
        height: 280px;
    }
}

.catalog .product-back-body {
    padding: 1.15rem 1.15rem 1.35rem;
}

.catalog .product-back-body h4 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    color: var(--clr-primary);
}

.catalog .product-back-body p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    margin: 0;
}

.product-3d-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
}

.product-3d-modal.active {
    display: block;
}

.product-3d-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.product-3d-dialog {
    position: relative;
    width: min(92vw, 900px);
    margin: 5vh auto 0;
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.25rem 1rem;
}

.product-3d-dialog h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--clr-primary);
}

#product3dViewer {
    width: 100%;
    height: min(72vh, 600px);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(11, 130, 140, 0.08) 0%, rgba(255, 69, 0, 0.08) 100%);
}

.product-3d-close {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    color: var(--clr-text-light);
    cursor: pointer;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Cards (Finca Style) */
.nutrition-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* More spacing for emblems */
    padding-top: 2rem;
    /* Space for top emblems */
}

@media (min-width: 768px) {
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
}

@media (min-width: 1024px) {
    .nutrition-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem 2rem;
    }

    .nutrition-grid.single-item {
        grid-template-columns: minmax(400px, 600px);
        justify-content: center;
    }
}

.floating-card {
    background-color: var(--clr-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    /* For emblems */
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-emblem {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
    border: 4px solid var(--clr-white);
}

.lg-emblem {
    width: 80px;
    height: 80px;
    top: -40px;
    font-size: 2.2rem;
}

.bg-teal {
    background-color: var(--clr-primary);
    color: white;
}

.bg-orange {
    background-color: var(--clr-secondary);
    color: white;
}

.card-badge-top {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--clr-secondary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.card-header {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    border-radius: 0 0 0 0;
}

.about-card .card-header {
    padding-top: 1.5rem;
}

.solid-teal {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.solid-orange {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
}

.card-header h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-white);
    margin-bottom: 0.25rem;
}

.card-header p {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media(min-width: 600px) {
    .two-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.nutrition-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nutrition-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: 1rem;
}

.nutrition-list li:last-child {
    border-bottom: none;
}

.em-row {
    margin-top: auto;
    /* Push to bottom */
    padding: 1rem !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-top: 1rem;
}

.highlight-orange {
    background-color: rgba(255, 69, 0, 0.1);
    color: var(--clr-secondary-dark);
}

.highlight-teal {
    background-color: rgba(11, 130, 140, 0.1);
    color: var(--clr-primary);
}

/* Dynamic Tilt Divider between Nosotros and Catalogo */
.catalog-top-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-bottom: 0.5rem;
}

.catalog-top-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 58px;
}

@media(min-width: 768px) {
    .catalog-top-divider svg {
        height: 96px;
    }
}

.catalog-top-divider .shape-fill {
    fill: var(--clr-white);
}

.custom-shape-divider-bottom-catalog {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: 1.5rem;
}

.custom-shape-divider-bottom-catalog svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 54px;
}

@media(min-width: 768px) {
    .custom-shape-divider-bottom-catalog svg {
        height: 86px;
    }
}

.custom-shape-divider-bottom-catalog .shape-fill {
    fill: var(--clr-white);
}


/* Quality Section - Editorial Layout */
.quality-section {
    background-color: var(--clr-white);
    padding: 7rem 0 7rem 0;
    position: relative;
    overflow: visible;
    margin-top: 0;
}

.catalog {
    padding-top: 0;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .catalog {
        padding-top: 0;
        padding-bottom: 2rem;
    }
}

.catalog .container {
    padding-top: 1.5rem;
}

@media (min-width: 768px) {
    .catalog .container {
        padding-top: 2rem;
    }
}

.quality-section::before {
    display: none;
}

.quality-section::after {
    display: none;
}

.quality-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2.25rem;
}

@media (min-width: 1024px) {
    .quality-shell {
        grid-template-columns: 1.45fr 1fr;
        align-items: stretch;
        gap: 2rem;
    }
}

.quality-hero {
    background-color: var(--clr-white);
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem 1.6rem 1.8rem;
    position: relative;
    overflow: hidden;
}

.quality-hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -80px;
    background: radial-gradient(circle, rgba(11, 130, 140, 0.2) 0%, rgba(11, 130, 140, 0) 70%);
}

.quality-hero::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 100%;
    background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
}

.quality-kicker {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--clr-white);
    background-color: var(--clr-primary);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
}

.quality-hero h2 {
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 0.9rem;
    max-width: 16ch;
}

@media (min-width: 768px) {
    .quality-hero h2 {
        font-size: 2.9rem;
    }
}

.quality-lead {
    font-size: 1.02rem;
    color: var(--clr-text-light);
    max-width: 64ch;
}

.quality-metrics {
    margin-top: 1.35rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .quality-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.quality-metric {
    background-color: var(--clr-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    padding: 0.8rem 0.95rem;
}

.metric-value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.55rem;
    color: var(--clr-secondary);
    line-height: 1;
}

.metric-label {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.84rem;
    color: var(--clr-text-light);
    font-weight: 600;
}

.quality-flow-card {
    background: var(--clr-primary);
    color: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: 1.7rem 1.4rem 1.3rem;
    box-shadow: var(--shadow-glow-teal);
}

.quality-flow-card h3 {
    color: var(--clr-white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.quality-flow {
    list-style: none;
    counter-reset: qflow;
    display: grid;
    gap: 1.35rem;
}

.quality-flow li {
    counter-increment: qflow;
    border-left: 2px solid rgba(255, 255, 255, 0.35);
    padding-left: 2.9rem;
    position: relative;
    padding-top: 0.25rem;
    padding-bottom: 0.15rem;
}

.quality-flow li::before {
    content: counter(qflow, decimal-leading-zero);
    position: absolute;
    left: 1rem;
    top: 0;
    transform: translateX(-50%);
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.78rem;
    border-radius: 10px;
    padding: 0.2rem 0.45rem;
    min-width: 46px;
    text-align: center;
    line-height: 1;
}

.flow-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.45rem;
}

.quality-flow p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.58;
    max-width: 44ch;
    color: rgba(255, 255, 255, 0.9);
}

.quality-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .quality-panels {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
    }
}

@media (min-width: 1100px) {
    .quality-panels {
        grid-template-columns: 1.1fr 0.9fr 1fr;
        grid-template-areas:
            "tealA orangeA orangeA"
            "tealB tealB orangeB";
    }

    .quality-panels .quality-panel:nth-child(1) {
        grid-area: tealA;
    }

    .quality-panels .quality-panel:nth-child(2) {
        grid-area: orangeA;
    }

    .quality-panels .quality-panel:nth-child(3) {
        grid-area: tealB;
    }

    .quality-panels .quality-panel:nth-child(4) {
        grid-area: orangeB;
    }
}

.quality-panel {
    background-color: var(--clr-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
}

.quality-panel:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.quality-panel-body {
    padding: 1.35rem 1.2rem 1.35rem;
    position: relative;
}

.quality-panel h4 {
    font-size: 1.18rem;
    margin-bottom: 0.45rem;
}

.quality-panel p {
    margin: 0;
    color: var(--clr-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.quality-panel-teal {
    border-top: 6px solid var(--clr-primary);
}

.quality-panel-orange {
    border-top: 6px solid var(--clr-secondary);
}

.quality-panel-teal .quality-panel-body::before,
.quality-panel-orange .quality-panel-body::before {
    content: "";
    position: absolute;
    right: 1.2rem;
    top: 1.1rem;
    width: 34px;
    height: 2px;
    opacity: 0.65;
}

.quality-panel-teal .quality-panel-body::before {
    background-color: var(--clr-primary);
}

.quality-panel-orange .quality-panel-body::before {
    background-color: var(--clr-secondary);
}

.quality-proofband {
    margin-top: 1.3rem;
    background-color: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.proofband-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--clr-primary);
    margin-bottom: 0.7rem;
}

.proofband-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.proofband-list li {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.8rem;
    font-size: 0.84rem;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    font-weight: 600;
}

/* Floating Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 1s;
}

.delay-2 {
    animation-delay: 2s;
}

.delay-3 {
    animation-delay: 3s;
}

/* ===== SCROLL ANIMATIONS FOR HISTORIA SECTION ===== */

/* Timeline item reveal animation */
@keyframes timelineReveal {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Timeline line grows down */
@keyframes Timeline {
    0% {
        scaleY(0);
        opacity: 0;
    }

    100% {
        scaleY(1);
        opacity: 1;
    }
}

/* Apply timeline animation dynamically */
.history-timeline.animate-line::before {
    animation: Timeline 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@media (max-width: 768px) {
    .history-timeline.animate-line::before {
        animation: Timeline 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }
}

.timeline-item.reveal {
    animation: timelineReveal 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.timeline-item.reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item.reveal:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item.reveal:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item.reveal:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item.reveal:nth-child(5) {
    animation-delay: 0.5s;
}

@media (max-width: 768px) {
    .timeline-item.reveal {
        animation: timelineReveal 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    .timeline-item.reveal:nth-child(1) {
        animation-delay: 0.05s;
    }

    .timeline-item.reveal:nth-child(2) {
        animation-delay: 0.1s;
    }

    .timeline-item.reveal:nth-child(3) {
        animation-delay: 0.15s;
    }

    .timeline-item.reveal:nth-child(4) {
        animation-delay: 0.2s;
    }

    .timeline-item.reveal:nth-child(5) {
        animation-delay: 0.25s;
    }
}

/* Stats counter animation (number counting effect) */
@keyframes statsGlow {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-card.reveal {
    animation: statsGlow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stat-card.reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card.reveal:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card.reveal:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card.reveal:nth-child(4) {
    animation-delay: 0.4s;
}

@media (max-width: 768px) {
    .stat-card.reveal {
        animation: statsGlow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    .stat-card.reveal:nth-child(1) {
        animation-delay: 0.05s;
    }

    .stat-card.reveal:nth-child(2) {
        animation-delay: 0.1s;
    }

    .stat-card.reveal:nth-child(3) {
        animation-delay: 0.15s;
    }

    .stat-card.reveal:nth-child(4) {
        animation-delay: 0.2s;
    }
}

/* Region cards staggered reveal */
@keyframes regionSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.region-card.reveal {
    animation: regionSlideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.region-card.reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.region-card.reveal:nth-child(2) {
    animation-delay: 0.18s;
}

.region-card.reveal:nth-child(3) {
    animation-delay: 0.26s;
}

.region-card.reveal:nth-child(4) {
    animation-delay: 0.34s;
}

.region-card.reveal:nth-child(5) {
    animation-delay: 0.42s;
}

.region-card.reveal:nth-child(6) {
    animation-delay: 0.5s;
}

@media (max-width: 768px) {
    .region-card.reveal {
        animation: regionSlideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    .region-card.reveal:nth-child(1) {
        animation-delay: 0.05s;
    }

    .region-card.reveal:nth-child(2) {
        animation-delay: 0.1s;
    }

    .region-card.reveal:nth-child(3) {
        animation-delay: 0.15s;
    }

    .region-card.reveal:nth-child(4) {
        animation-delay: 0.2s;
    }

    .region-card.reveal:nth-child(5) {
        animation-delay: 0.25s;
    }

    .region-card.reveal:nth-child(6) {
        animation-delay: 0.3s;
    }
}

/* Number counter animation class for stats */
.stat-number.counting {
    display: inline-block;
}

/* About Us Section (Nosotros) */
.about-section {
    padding: 1rem 0 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.about-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border-bottom: 4px solid var(--clr-primary);
    display: block;
}

.about-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

.about-card .card-emblem {
    /* Superpose emblem over the border between image and card header */
    top: 220px;
    transform: translate(-50%, -50%);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--clr-text);
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: 1rem;
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list li strong {
    color: var(--clr-primary);
    display: block;
    margin-bottom: 0.25rem;
}


/* Historia y Cobertura Regional Section */
.history-section {
    background-color: var(--clr-white);
    padding-bottom: 0;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .history-content {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.history-text {
    flex: 1;
}

.history-text .section-header {
    margin-bottom: 3rem;
    text-align: left;
}

.history-text .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.history-text .section-header p {
    font-size: 1.1rem;
    color: var(--clr-primary);
    font-weight: 600;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    padding-left: 30px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    width: 70px;
    height: 70px;
    background-color: var(--clr-white);
    border: 3px solid var(--clr-primary);
    border-radius: 50%;
    position: absolute;
    left: -51px;
    top: 0;
    z-index: 3;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--clr-primary);
}

.timeline-year {
    display: block;
}

.timeline-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background-color: var(--clr-bg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--clr-primary);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    background-color: rgba(11, 130, 140, 0.05);
    transform: translateX(10px);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}

.history-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .history-stats {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    color: var(--clr-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-glow-teal);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 600;
}

/* Divisor Decorativo entre Secciones */
.section-divider {
    margin: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    padding: 0;
}

.divider-dots {
    display: none;
}

.dot {
    display: none;
}

.dot-teal {
    display: none;
}

.dot-orange {
    display: none;
}

.divider-line {
    display: none;
}

/* Cobertura Regional */
.coverage-section {
    margin-top: 0;
    background-color: var(--clr-bg);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
}

.coverage-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: calc(-50vw + 50%);
    right: calc(-50vw + 50%);
    height: 80px;
    background-color: var(--clr-bg);
    clip-path: polygon(0 0,
            5% 20%,
            10% 10%,
            15% 25%,
            20% 15%,
            25% 30%,
            30% 20%,
            35% 35%,
            40% 25%,
            45% 40%,
            50% 30%,
            55% 40%,
            60% 25%,
            65% 35%,
            70% 20%,
            75% 30%,
            80% 15%,
            85% 25%,
            90% 10%,
            95% 20%,
            100% 0,
            100% 100%,
            0 100%);
    z-index: 1;
}

.regions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .regions-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .region-card {
        flex: 0 0 calc(33.333% - 1.33rem);
        max-width: 380px;
    }
}

.region-card {
    min-height: 430px;
    display: block;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    perspective: 1200px;
}

.region-card:hover {
    transform: none;
    box-shadow: none;
}

.region-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 430px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.region-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--clr-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    backface-visibility: hidden;
}

.region-card-back {
    transform: rotateY(180deg);
}

.region-card.is-flipped .region-card-inner {
    transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
    .region-card:hover .region-card-inner {
        transform: rotateY(180deg);
    }

    .region-card:hover .region-card-face {
        box-shadow: var(--shadow-lg);
    }
}

@media (hover: none),
(pointer: coarse) {
    .region-card.is-touch-flip {
        cursor: pointer;
        touch-action: manipulation;
    }
}

.region-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.region-badge {
    width: 60px;
    height: 60px;
    background-color: var(--clr-bg);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.8rem;
    box-shadow: var(--shadow-md);
}

.region-card .card-header {
    text-align: left;
}

.region-status {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.25rem !important;
}

.region-details {
    list-style: none;
    padding: 0;
}

.region-details li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: 0.9rem;
}

.region-details li:last-child {
    border-bottom: none;
}

.region-details strong {
    color: var(--clr-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.province-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.province-list li {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--clr-text);
    background-color: var(--clr-bg);
}

.coverage-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(11, 130, 140, 0.05) 0%, rgba(255, 69, 0, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--clr-border);
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
}

.coverage-distributor-image {
    width: min(100%, 440px);
    height: 220px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
}

.flip-card-hint {
    text-align: center;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: 0.01em;
}

@media (min-width: 1024px) {
    .coverage-distributor-image {
        width: min(100%, 820px);
        height: 260px;
    }
}

.coverage-cta p {
    font-size: 1.1rem;
    color: var(--clr-text);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== NUEVA SECCIÓN DE CONTACTO ===== */
.contact-section {
    background-color: var(--clr-bg);
    padding: 6rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}

.custom-shape-divider-top-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 0;
}

.custom-shape-divider-top-contact svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 90px;
}

@media(min-width: 768px) {
    .custom-shape-divider-top-contact svg {
        height: 150px;
    }
}

.custom-shape-divider-top-contact .shape-fill {
    fill: var(--clr-white);
}

.modern-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background-color: var(--clr-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: 2rem;
}

@media(min-width: 1024px) {
    .modern-contact-grid {
        grid-template-columns: 400px 1fr;
    }
}

/* Panel de Información */
.contact-info-panel {
    background: linear-gradient(135deg, var(--clr-primary) 0%, #086068 100%);
    color: var(--clr-white);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.info-panel-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.info-panel-bg::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0) 70%);
    border-radius: 50%;
}

.info-content {
    position: relative;
    z-index: 2;
}

.info-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--clr-white);
}

.contact-intro {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 0 3rem 0;
}

.contact-action-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-action-item:not(.no-hover):hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(10px);
}

.contact-action-item.no-hover {
    cursor: default;
    background-color: transparent;
    border-color: transparent;
    padding-left: 0;
}

.action-arrow {
    font-size: 1.2rem;
    color: var(--clr-secondary);
    opacity: 0;
    transform: translateX(-15px);
    transition: var(--transition-normal);
    margin-left: auto;
}

.contact-action-item:not(.no-hover):hover .action-arrow {
    opacity: 1;
    transform: translateX(0);
}

.contact-icon {
    background-color: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.contact-action-item:not(.no-hover):hover .contact-icon {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contact-text span {
    font-size: 0.95rem;
    opacity: 0.85;
}

.social-links-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--clr-white);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--clr-secondary);
    transform: translateY(-3px);
}

/* Panel del Formulario */
.contact-form-panel {
    padding: 3rem 2rem;
    background-color: var(--clr-white);
}

.contact-form-panel h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--clr-text);
}

@media(min-width: 768px) {
    .contact-form-panel {
        padding: 4rem;
    }
}

.modern-lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Floating Labels */
.floating-group {
    position: relative;
}

.floating-input {
    width: 100%;
    padding: 1.4rem 1rem 0.6rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.floating-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(11, 130, 140, 0.1);
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-light);
    pointer-events: none;
    transition: var(--transition-fast);
    font-size: 1rem;
}

textarea.floating-input {
    min-height: 120px;
    resize: vertical;
    padding-top: 1.6rem;
}

textarea.floating-input+.floating-label {
    top: 1.5rem;
}

.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-primary);
}

/* Custom Select */
.custom-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.select-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-light);
    margin-left: 0.5rem;
}

.modern-select {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.modern-select:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(11, 130, 140, 0.1);
}

/* Submit Button */
.btn-submit-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    width: 100%;
    border: none;
    cursor: pointer;
}

.btn-submit-modern>span {
    font-weight: 600;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    transition: var(--transition-fast);
}

.btn-submit-modern:hover .btn-icon {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.3);
}

/* Main Footer */
.main-footer {
    background-color: #1a1a1a;
    color: var(--clr-white);
    padding: 2.5rem 0;
}

.footer-bottom-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media(min-width: 768px) {
    .footer-bottom-line {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 900;
}

.footer-brand .logo-text {
    color: var(--clr-white);
}

.footer-brand .logo-accent {
    color: var(--clr-secondary);
}

.main-footer p {
    opacity: 0.7;
    font-size: 0.95rem;
    margin: 0;
}