/* Variables */
:root {
    --navy-900: #0d2b3a;
    --navy-800: #133b55;
    --navy-700: #0e2c44;
    --teal-600: #1bb19a;
    --teal-500: #22b78e;
    --beige-50: #fbf6ef;
    --beige-100: #f7f1e8;
    --white: #ffffff;
    --ink: #0f2434;
    --text: #2f3a40;
    --muted: #5b6770;
    --border: #e6ded3;
    --success: var(--teal-500);

    --navy: var(--navy-900);
    --navy-2: var(--navy-800);
    --primary-light: var(--teal-600);
    --dark: #071b2a;

    --primary: var(--navy-900);
    --secondary: var(--text);
    --gray: var(--muted);
    --paper: var(--beige-100);
    --paper-2: var(--beige-50);
    --light: var(--beige-100);
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
    --font-dm-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", Times, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-dm-sans);
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--beige-50);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

body.cookie-pending {
    overflow: hidden;
}

body.cookie-pending header,
body.cookie-pending main,
body.cookie-pending footer {
    filter: blur(2px);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(34, 183, 142, 0.55);
    background: rgba(13, 43, 58, 0.92);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--transition);
    z-index: 1200;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: rgba(34, 183, 142, 0.85);
    background: rgba(13, 43, 58, 0.98);
}

.back-to-top:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 177, 154, 0.25), 0 18px 40px rgba(0, 0, 0, 0.25);
}

.whatsapp-float {
    position: fixed;
    left: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.8rem 0.55rem 0.55rem;
    border-radius: 999px;
    background: rgba(251, 246, 239, 0.96);
    border: 1px solid rgba(230, 224, 218, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    color: rgba(15, 36, 52, 0.95);
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.whatsapp-float:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25), 0 18px 40px rgba(0, 0, 0, 0.18);
}

.whatsapp-float img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: block;
}

.whatsapp-float .whatsapp-sub {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(15, 36, 52, 0.95);
    white-space: nowrap;
}

.whatsapp-float .whatsapp-text {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 520px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 999px;
    }

    .whatsapp-float img {
        width: 46px;
        height: 46px;
    }

    .whatsapp-float .whatsapp-text {
        display: none;
    }
}

.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
}

.cookie-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 30, 40, 0.22);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.cookie-banner__inner {
    max-width: 980px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(230, 224, 218, 0.9);
    background: rgba(251, 246, 239, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    padding: 1.1rem 1.1rem 1rem;
    position: relative;
    z-index: 1;
}

.cookie-banner__title {
    font-family: var(--font-serif);
    font-weight: 800;
    color: rgba(15, 36, 52, 0.95);
    margin-bottom: 0.4rem;
}

.cookie-banner__text {
    font-family: var(--font-sans);
    color: rgba(77, 79, 82, 0.96);
    line-height: 1.55;
    margin-bottom: 0.9rem;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-banner__link {
    margin-right: auto;
    font-family: var(--font-sans);
    font-weight: 700;
    color: rgba(15, 36, 52, 0.92);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__link:hover {
    color: var(--teal-600);
}

.cookie-btn {
    height: 40px;
    padding: 0 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn--primary {
    background: var(--teal-500);
    color: #ffffff;
}

.cookie-btn--primary:hover {
    filter: brightness(0.96);
}

.cookie-btn--ghost {
    background: transparent;
    border-color: rgba(15, 36, 52, 0.22);
    color: rgba(15, 36, 52, 0.92);
}

.cookie-btn--ghost:hover {
    border-color: rgba(27, 177, 154, 0.55);
}

.cookie-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 177, 154, 0.22);
}

@media (max-width: 520px) {
    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__link {
        width: 100%;
        margin-right: 0;
    }

    .cookie-btn {
        flex: 1 1 0;
    }
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: var(--font-dm-serif);
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #0d2340;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

body:not(.has-hero) header {
    height: 70px;
    background: rgba(251, 246, 239, 0.96);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(230, 222, 211, 0.9);
}

body:not(.has-hero) header .logo {
    color: var(--navy-900);
}

body:not(.has-hero) header .nav-links a {
    color: rgba(15, 36, 52, 0.9);
}

body:not(.has-hero) header .nav-links a:hover,
body:not(.has-hero) header .nav-links a.active {
    color: var(--navy-900);
}

body:not(.has-hero) header .nav-links a::after {
    background: var(--navy-900);
}

body:not(.has-hero) header .mobile-menu-toggle span {
    background: var(--navy-900);
}

header.scrolled {
    height: 70px;
    background: rgba(251, 246, 239, 0.96);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(230, 222, 211, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--teal-600);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

header.scrolled .logo {
    color: var(--navy-900);
}

header.scrolled .nav-links a {
    color: rgba(15, 36, 52, 0.9);
}

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
    color: var(--navy-900);
}

header.scrolled .nav-links a::after {
    background: var(--navy-900);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
}

header.scrolled .mobile-menu-toggle span {
    background: var(--navy-900);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100dvh - var(--header-height));
        min-height: calc(100svh - var(--header-height));
        background: rgba(251, 246, 239, 0.96);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.75rem;
        padding: 2.5rem 1.5rem;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-links a {
        color: rgba(15, 36, 52, 0.9);
        font-weight: 900;
        letter-spacing: 0.16em;
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--navy-900);
    }

    .nav-links a::after {
        display: none;
    }

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

@media (max-width: 768px) {
    .footer-bottom,
    .footer-bottom .container {
        text-align: center;
    }
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 70px;
    background: linear-gradient(135deg, #0d2340 0%, #163355 60%, #1a4a3a 100%);
    color: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: center;
}

@media (min-width: 980px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3rem;
    }
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(27, 177, 154, 0.85);
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-dm-sans);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.65rem;
    color: #ffffff;
    max-width: 560px;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.1rem;
    }
}

.hero h1 .accent {
    color: var(--teal-600);
}

.hero p {
    font-family: var(--font-dm-sans);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    max-width: 560px;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 1.15rem;
    border-radius: 12px;
    font-family: var(--font-dm-sans);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-500);
    color: #ffffff;
}

.btn-primary:hover {
    filter: brightness(0.96);
}

.btn-secondary {
    background: rgba(13, 43, 58, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(13, 43, 58, 0.35);
}

.hero-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-media img {
    display: block;
    width: 100%;
    object-position: 30% 70%;
    height: 50%;
}

.hero-badges {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 560px) {
    .hero-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-badge {
    background: rgba(27, 177, 154, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0.65rem 0.6rem;
    color: #ffffff;
    text-align: center;
    backdrop-filter: blur(6px);
}

.hero-badge .value {
    display: block;
    font-family: var(--font-dm-sans);
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-badge .label {
    display: block;
    font-family: var(--font-dm-sans);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.95;
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--paper);
}

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

.section-header h2 {
    font-size: 2.35rem;
}

.kicker {
    font-family: var(--font-dm-sans);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 0.75rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    font-weight: 400;
    font-family: var(--font-dm-sans);
}

.section-intro {
    text-align: left;
    max-width: 800px;
    margin: -2rem 0 4rem;
    font-size: 1.1rem;
}

#contacto {
    background: var(--beige-50);
}

.contact-lead {
    font-family: var(--font-dm-sans);
    color: rgba(77, 79, 82, 0.96);
    max-width: 70ch;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 980px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.contact-photo {
    border-radius: 10px;
    overflow: hidden;
    background: #e5e7eb;
    box-shadow: 0 18px 40px rgba(13, 43, 58, 0.14);
    border: 1px solid rgba(230, 224, 218, 0.9);
}

.contact-photo img {
    display: block;
    width: 100%;
    height: 200px;
    object-position: 30% 70%;
    object-fit: cover;
}

@media (min-width: 980px) {
    .contact-photo img {
        height: 210px;
    }
}

.contact-subtitle {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    color: rgba(15, 36, 52, 0.96);
}

.contact-list {
    background: transparent;
    border-radius: 14px;
}

.contact-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.9rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(217, 210, 199, 0.9);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(15, 36, 52, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 36, 52, 0.85);
}

.contact-label {
    font-family: var(--font-dm-sans);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(91, 103, 112, 0.95);
    margin-bottom: 0.35rem;
}

.contact-value {
    font-family: var(--font-dm-sans);
    color: rgba(15, 36, 52, 0.95);
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-value a {
    color: rgba(15, 36, 52, 0.95);
}

.contact-value a:hover {
    color: var(--teal-600);
}

.contact-card {
    background: #f5f1eb;
    border: 1px solid rgba(230, 224, 218, 0.9);
    border-radius: 16px;
    padding: 1.65rem;
}

@media (min-width: 980px) {
    .contact-card {
        padding: 2rem;
    }
}

/* Quiénes Somos */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 980px) {
    .about-grid {
        grid-template-columns: 1.25fr 0.95fr;
        gap: 3rem;
        align-items: start;
    }
}

#quienes-somos {
    background: var(--white);
}

#quienes-somos .section-header h2 {
    color: var(--navy-900);
    font-size: 3rem;
    line-height: 1.06;
    max-width: 22ch;
}

@media (max-width: 768px) {
    #quienes-somos .section-header h2 {
        font-size: 2.35rem;
    }
}

.about-text p {
    color: rgba(69, 73, 77, 0.96);
    font-family: var(--font-dm-sans);
    font-size: 0.95rem;
    line-height: 1.85;
    max-width: 52ch;
}

.about-quote {
    margin: 1.75rem 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--teal-600);
}

.about-quote p {
    margin: 0;
    color: rgba(69, 73, 77, 0.96);
    font-family: var(--font-dm-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tag {
    background: #f7f7f7;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    color: rgba(47, 58, 64, 0.92);
    font-weight: 600;
    border: 1px solid #d9d9d9;
    box-shadow: 0 1px 0 rgba(15, 36, 52, 0.06);
}

.tag:hover {
    background: #ffffff;
}

.about-photo {
    border-radius: 14px;
    overflow: hidden;
    border: 0;
    background: #e5e7eb;
    padding: 8px;
    margin-bottom: 1.25rem;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: 30% 50%;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.about-features h3 {
    font-family: var(--font-dm-sans);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--navy-900);
}

.feature-list {
    background: #f5f1eb;
    padding: 1.6rem 1.6rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(217, 210, 199, 0.9);
    box-shadow: 0 18px 40px rgba(13, 43, 58, 0.06);
}

.feature-list li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 1rem;
}

.feature-list .check {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-600);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.85rem;
    margin-top: 2px;
}

.feature-list strong {
    display: block;
    font-family: var(--font-dm-sans);
    font-weight: 800;
    color: rgba(15, 36, 52, 0.92);
    margin-bottom: 0.15rem;
}

.feature-list span {
    display: block;
    font-family: var(--font-dm-sans);
    color: rgba(96, 102, 107, 0.95);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}

.service-card {
    background: var(--white);
    padding: 1.35rem 1.35rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #e6e0da;
    box-shadow: 0 10px 24px rgba(13, 43, 58, 0.06);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(13, 43, 58, 0.08);
}

.service-card h3 {
    font-family: var(--font-dm-serif);
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0.55rem 0 0.45rem;
    color: var(--navy-900);
}

.service-card p {
    margin: 0;
    color: rgba(90, 93, 96, 0.98);
    font-family: var(--font-dm-sans);
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (min-width: 760px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.6rem;
    }
}

.services-lead {
    font-family: var(--font-dm-sans);
    color: rgba(77, 79, 82, 0.96);
    max-width: 70ch;
    margin-top: -2rem;
    margin-bottom: 1.5rem;
}

.services-banner {
    margin: 0 0 2rem;
}

.services-banner img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(230, 222, 211, 0.85);
    box-shadow: 0 18px 40px rgba(13, 43, 58, 0.14);
    background: #d1d5db;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.service-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--beige-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-icon-square {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--navy-900);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Sectores */
.sectors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.sector-item {
    flex: 1 1 140px;
    text-align: center;
    padding: 1.05rem 0.9rem;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid #e6e6e8;
    box-shadow: 0 10px 22px rgba(13, 43, 58, 0.06);
    transition: var(--transition);
}

.sector-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(13, 43, 58, 0.08);
}

.sectors-lead {
    font-family: var(--font-dm-sans);
    color: rgba(56, 66, 74, 0.96);
    max-width: 72ch;
    margin-top: -2rem;
    margin-bottom: 1.75rem;
}

.sectors-banner {
    position: relative;
    margin-bottom: 1.5rem;
}

.sectors-banner img {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
    object-position: 20% 35%;
    border: 1px solid rgba(230, 230, 232, 0.9);
    box-shadow: 0 18px 40px rgba(13, 43, 58, 0.14);
    background: #d1d5db;
}

.sector-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.65rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 43, 58, 0.06);
    color: var(--navy-900);
}

.sector-item span {
    display: block;
    font-family: var(--font-dm-sans);
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(56, 66, 74, 0.96);
}

.sector-item--sanitarios .sector-icon { background: rgba(27, 177, 154, 0.12); color: var(--teal-600); }
.sector-item--cosmeticos .sector-icon { background: rgba(217, 70, 239, 0.12); color: #c026d3; }
.sector-item--cuidado .sector-icon { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.sector-item--biocidas .sector-icon { background: rgba(34, 183, 142, 0.12); color: var(--teal-600); }
.sector-item--zoosanitarios .sector-icon { background: rgba(249, 115, 22, 0.14); color: #ea580c; }
.sector-item--alimenticios .sector-icon { background: rgba(34, 197, 94, 0.12); color: #16a34a; }

@media (min-width: 980px) {
    .sectors-grid {
        flex-wrap: nowrap;
        gap: 1.25rem;
    }

    .sector-item {
        flex: 1 1 0;
    }
}

/* Cómo trabajamos */
.process {
    background: linear-gradient(180deg, #071f2f 0%, #0b2435 100%);
    color: #ffffff;
}

.process-header {
    max-width: 880px;
}

.process-kicker {
    font-family: var(--font-dm-sans);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(138, 163, 181, 0.95);
    margin-bottom: 0.85rem;
}

.process-header h2 {
    color: #ffffff;
    font-size: 3.2rem;
    line-height: 1.12;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .process-header h2 {
        font-size: 2.4rem;
    }
}

.process-lead {
    font-family: var(--font-dm-sans);
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(203, 214, 223, 0.95);
    max-width: 68ch;
}

.process-banner {
    margin-top: 1.75rem;
}

.process-banner img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: 25% 10%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    .process-banner img {
        height: 260px;
        object-position: 22% 50%;
    }
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    position: relative;
    margin-top: 2.25rem;
    padding-top: 20px;
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2.25rem;
        padding-top: 0;
    }
}

.process-steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 52px;
    height: 1px;
    background: linear-gradient(90deg, rgba(31, 58, 77, 0.25), rgba(40, 80, 106, 0.9), rgba(31, 58, 77, 0.25));
}

@media (max-width: 900px) {
    .process-steps::before {
        display: none;
    }
}

.step {
    text-align: center;
    z-index: 1;
}

.step-number {
    width: 62px;
    height: 62px;
    background: #1ea37a;
    color: #ffffff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.process .step h3 {
    font-family: var(--font-dm-sans);
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 0.55rem;
}

.process .step p {
    font-family: var(--font-dm-sans);
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(203, 214, 223, 0.95);
}

.form-title {
    font-size: 1.55rem;
    margin-bottom: 1.35rem;
    color: var(--navy-900);
}

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

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-dm-sans);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: rgba(51, 65, 85, 0.9);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(217, 210, 199, 1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--secondary);
}

.form-group select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(51, 65, 85, 0.75) 50%),
        linear-gradient(135deg, rgba(51, 65, 85, 0.75) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(1em + 6px),
        calc(100% - 14px) calc(1em + 6px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(100, 116, 139, 0.9);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(27, 177, 154, 0.22);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--navy-900);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-dm-sans);
}

.btn-submit:hover {
    background: var(--navy-800);
}

/* Enlaces */
.links {
    background: radial-gradient(1200px 520px at 30% -20%, rgba(34, 183, 142, 0.10), rgba(0, 0, 0, 0)),
        linear-gradient(180deg, #061e28 0%, #0b2b35 100%);
}

.links .kicker {
    color: rgba(124, 160, 167, 0.95);
}

.links .section-header h2 {
    color: #ffffff;
    font-size: 3.1rem;
    line-height: 1.08;
    max-width: 22ch;
}

@media (max-width: 768px) {
    .links .section-header h2 {
        font-size: 2.3rem;
    }
}

.links-lead {
    font-family: var(--font-dm-sans);
    color: rgba(169, 192, 198, 0.95);
    max-width: 70ch;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

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

.link-card {
    position: relative;
    min-height: 92px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
    padding: 1.2rem 1.25rem;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 120px auto;
    filter: saturate(1.05) contrast(1.05);
}

.link-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 30, 40, 0.88) 0%, rgba(6, 30, 40, 0.66) 55%, rgba(6, 30, 40, 0.20) 100%);
}

.link-card span {
    position: relative;
    z-index: 1;
    font-family: var(--font-dm-sans);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.96);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
    border-color: rgba(34, 183, 142, 0.35);
}

@media (min-width: 760px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1100px) {
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.link-card--omologic::before { background-image: url('../images/grupo-omologic-logo.webp'); }
.link-card--qualliance::before { background-image: url('../images/grupo-qualliance-logo.webp'); }
.link-card--amconsulting::before { background-image: url('../images/md-amconsulting.webp'); }
.link-card--acms::before { background-image: url('../images/grupo-acms-logo.webp'); }
.link-card--aemps::before { background-image: url('../images/agencia-espanola-de-medicamentos-y-productos-sanitarios-logo.webp'); }
.link-card--ue::before { background-image: url('../images/union-europea-logo.webp'); }

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-info h3 { color: var(--white); }
.footer-info p { opacity: 0.7; margin-bottom: 1rem; }
.footer-info a { color: var(--primary-light); }

.footer-links h4,
.footer-legal h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a {
    opacity: 0.7;
}

.footer-links a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.visitor-counter {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    display: inline-block;
}

#counter-value {
    font-weight: 800;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    text-align: center;
    opacity: 0.6;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Success/Error Message Styles */
.status-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: 500;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}
