/* Costa del Sol Foods & Beverages - Premium Modern Design */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Premium Navy & Gold */
    --primary-dark: #0F172A;
    /* Deep Slate/Navy */
    --primary: #1E293B;
    /* Lighter Slate */
    --accent-gold: #C5A059;
    /* Premium Gold */
    --accent-gold-light: #E5C585;
    --detail-blue: #3B82F6;
    /* Tech overlay */

    --bg-body: #F8FAFC;
    /* Cool light grey */
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 40px -5px rgba(15, 23, 42, 0.1);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    /* Slightly wider for modern feel */
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    color: var(--accent-gold);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: var(--radius-sm);
}

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

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

.nav-link:hover {
    color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.08);
    /* Gold hint */
}

.nav-link.active {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown > .nav-link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
    opacity: 0.8;
}

.nav-dropdown:hover > .nav-link::after,
.nav-dropdown.open > .nav-link::after {
    transform: rotate(-135deg) translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--bg-body);
    color: var(--primary-dark);
}

/* Language switch (ES / EN) */
.logo {
    margin-right: auto;
}

.lang-switch {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    flex-shrink: 0;
}

.lang-switch span {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 10px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.lang-switch span.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.lang-switch:hover span:not(.active) {
    color: var(--white);
}

/* CTA Button in Nav */
.nav-cta {
    background: var(--primary-dark);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
    background: var(--primary);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 11px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                background-color 0.3s ease;
}

.menu-toggle.active {
    background: rgba(197, 160, 89, 0.2);
    border-color: var(--accent-gold);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent-gold);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent-gold);
}

/* Buttons GLOBAL */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #B08D45);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 60px;
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Services */
.services {
    background: var(--bg-body);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(197, 160, 89, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-gold);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-gold);
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Pushes link to bottom */
}

.service-link {
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: var(--accent-gold);
    gap: 8px;
    /* Arrow slide effect */
}

/* About */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-dark);
}

.feature svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-gold);
}

/* Values Section */
.values {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1E293B 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.values::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(197, 160, 89, 0.1), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08), transparent 40%);
}

.values .section-title {
    color: var(--white);
}

.values .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.values-grid .value-card:nth-child(1),
.values-grid .value-card:nth-child(2),
.values-grid .value-card:nth-child(3) {
    grid-column: span 2;
}

.values-grid .value-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.values-grid .value-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-dark);
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.value-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contact */
.contact {
    background: var(--bg-body);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    padding-right: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-dark);
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

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

.footer-logo {
    background: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: inline-block;
    height: 50px;
    width: auto;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    /* Hueco para el botón flotante de WhatsApp */
    padding-right: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-credit a {
    color: var(--accent-gold);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Footer Contact Bar */
.footer-contact-bar {
    display: flex;
    justify-content: flex-end;
    gap: 32px;
    padding: 20px 0;
    margin-bottom: 10px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-contact-link:hover {
    color: var(--accent-gold);
}

.footer-contact-link svg {
    flex-shrink: 0;
}

/* Page Headers (Subpages) */
.page-hero {
    background-color: var(--primary-dark);
    padding: 180px 0 80px;
    /* More top padding for glass header */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(197, 160, 89, 0.1), transparent 40%);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

.breadcrumb {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

/* Page Content */
.page-content {
    background: var(--bg-surface);
    padding: 80px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

.content-main h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}

.content-main p,
.content-main ul {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.content-main li {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid var(--accent-gold);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-body);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.sidebar-links a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid transparent;
}

.sidebar-links a:hover {
    background: var(--white);
    border-color: #E2E8F0;
    color: var(--primary-dark);
    transform: translateX(5px);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), #1E293B);
    color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    opacity: 0.2;
}

.cta-box h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

/* Legal Pages - Modern Redesign */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1), transparent 40%);
}

.legal-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.legal-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.legal-nav {
    background: var(--bg-surface);
    padding: 16px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
}

.legal-nav ul {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-nav a {
    padding: 10px 20px;
    background: var(--bg-body);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-muted);
}

.legal-nav a:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.legal-nav a.active {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.legal-main {
    padding: 60px 0 80px;
    background: var(--bg-body);
}

.legal-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.legal-card h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-body);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-card h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 2px;
    flex-shrink: 0;
}

.legal-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-card ul {
    list-style: none;
}

.legal-card li {
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-body);
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.legal-card li:last-child {
    border: none;
}

.legal-card li strong {
    color: var(--primary-dark);
    min-width: 140px;
    flex-shrink: 0;
}

.info-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    opacity: 0.2;
}

.info-box h3 {
    margin-bottom: 12px;
    color: var(--white);
    position: relative;
}

.info-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
}

.info-box a {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

/* Privacy Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.right-item {
    background: var(--bg-body);
    padding: 24px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.right-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.right-item span {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.right-item strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.right-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Cookie Types Grid */
.cookie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.cookie-type {
    background: var(--bg-body);
    padding: 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-gold);
}

.cookie-type.essential {
    border-color: #22C55E;
}

.cookie-type.analytics {
    border-color: #F59E0B;
}

.cookie-type.marketing {
    border-color: #EF4444;
}

.cookie-type h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1rem;
}

.cookie-type p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Browser List */
.browser-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.browser-item {
    background: var(--bg-body);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.browser-item:hover {
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.browser-item span {
    font-size: 1.5rem;
}

.browser-item strong {
    color: var(--primary-dark);
}

/* Terms Services Grid */
.services-grid-legal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.service-tag {
    background: linear-gradient(135deg, var(--bg-body), rgba(197, 160, 89, 0.08));
    padding: 20px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
}

.service-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.service-tag span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* Contact Grid for Terms */
.contact-grid-legal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.contact-item-legal {
    background: var(--bg-body);
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-item-legal:hover {
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.contact-item-legal span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.contact-item-legal strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.contact-item-legal p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-content,
.service-card,
.about-image,
.contact-form {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ================================================================
   RESPONSIVE DESIGN & MOBILE NAVIGATION
   ================================================================ */

/* Backdrop overlay for mobile menu */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 29, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open .header {
    /* Near-opaque background makes blur unnecessary here, avoiding the cost
       of stacking it on top of the backdrop + drawer blur while open */
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Hide floating WhatsApp when mobile menu is open to prevent overlapping */
body.menu-open .whatsapp-float {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.8) !important;
    transition: all 0.25s ease !important;
}

/* Hide the cookie banner while the mobile menu is open: it sits above the
   drawer (z-index: 9999) and would otherwise overlap/intercept its links */
body.menu-open .cookie-banner {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Tablet & Mobile Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
    .header-content {
        gap: 16px;
    }

    .logo {
        min-width: 0;
        flex-shrink: 1;
    }

    .logo-text {
        min-width: 0;
    }

    .lang-switch {
        order: 0;
        margin: 0 10px 0 0;
    }

    .lang-switch span {
        padding: 5px 7px;
        font-size: 0.72rem;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        /* Must be positioned for z-index to take effect, otherwise the
           fixed-position drawer (which overlaps this corner of the header)
           paints above it and blocks clicks while open */
        position: relative;
        z-index: 1002;
    }

    .menu-toggle span {
        background: var(--white);
    }

    /* Mobile Navigation Drawer (slide-in from right) */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(86vw, 380px);
        height: 100dvh;
        max-height: none;
        background: linear-gradient(180deg, #0F172A 0%, #142038 55%, #0F172A 100%);
        box-shadow: -20px 0 60px -15px rgba(0, 0, 0, 0.45);
        border-bottom: none;
        border-left: 1px solid rgba(197, 160, 89, 0.25);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--header-height, 72px) + 18px) 0 22px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        opacity: 1;
        visibility: hidden;
        transform: translateX(100%);
        pointer-events: none;
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0s linear 0.45s;
        z-index: 999;
        scrollbar-width: thin;
        scrollbar-color: rgba(197, 160, 89, 0.5) transparent;
    }

    .nav::-webkit-scrollbar {
        width: 5px;
    }

    .nav::-webkit-scrollbar-thumb {
        background: rgba(197, 160, 89, 0.45);
        border-radius: 10px;
    }

    .nav::before {
        content: 'Menú';
        order: -1;
        display: block;
        padding: 0 24px 14px;
        font-family: var(--font-heading);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--accent-gold);
        opacity: 0.85;
    }

    .nav.active {
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0s linear 0s;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 2px;
        padding: 0 16px;
    }

    .nav-link {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 14px;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.85) !important;
        width: 100%;
        transition: all 0.2s ease;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10%;
        bottom: 10%;
        width: 3px;
        border-radius: 3px;
        background: var(--accent-gold);
        transform: scaleY(0);
        transition: transform 0.25s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-gold) !important;
        background: rgba(197, 160, 89, 0.1);
        padding-left: 18px;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        transform: scaleY(1);
    }

    /* Mobile Dropdown Container */
    .nav-dropdown {
        width: 100%;
        margin: 2px 0;
    }

    .nav-dropdown > .nav-link {
        cursor: pointer;
        user-select: none;
    }

    .nav-dropdown > .nav-link::after {
        content: '';
        display: inline-block;
        width: 9px;
        height: 9px;
        border-right: 2.5px solid var(--accent-gold);
        border-bottom: 2.5px solid var(--accent-gold);
        transform: rotate(45deg);
        margin-right: 4px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        flex-shrink: 0;
    }

    .nav-dropdown.open > .nav-link {
        color: var(--accent-gold) !important;
        background: rgba(197, 160, 89, 0.1);
        border-radius: 10px 10px 0 0;
        border-bottom: 1px solid rgba(197, 160, 89, 0.25);
    }

    .nav-dropdown.open > .nav-link::after {
        transform: rotate(-135deg);
    }

    /* Submenu animation and card styling */
    .nav-dropdown .dropdown-menu {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(197, 160, 89, 0.22) !important;
        border-top: none !important;
        border-left: 3px solid var(--accent-gold) !important;
        border-radius: 0 0 10px 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.25s ease,
                    visibility 0.35s ease,
                    padding 0.3s ease;
        width: 100% !important;
        min-width: 0 !important;
    }

    .nav-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 480px;
        overflow-y: auto;
        padding: 6px 8px !important;
    }

    .nav-dropdown .dropdown-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
        display: block;
    }

    .nav-dropdown .dropdown-menu a {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 11px 12px !important;
        color: rgba(255, 255, 255, 0.82) !important;
        font-size: 0.92rem !important;
        font-weight: 500 !important;
        background: rgba(255, 255, 255, 0.03) !important;
        margin: 4px 0 !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-shadow: none !important;
        transition: all 0.22s ease !important;
        min-height: 46px;
    }

    .nav-dropdown .dropdown-menu a::before {
        content: '';
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent-gold);
        opacity: 0.65;
        flex-shrink: 0;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-dropdown .dropdown-menu a:hover,
    .nav-dropdown .dropdown-menu a:active,
    .nav-dropdown .dropdown-menu a.active {
        background: rgba(197, 160, 89, 0.14) !important;
        color: var(--accent-gold-light) !important;
        border-color: var(--accent-gold) !important;
        padding-left: 14px !important;
        font-weight: 600 !important;
    }

    .nav-dropdown .dropdown-menu a:hover::before,
    .nav-dropdown .dropdown-menu a:active::before,
    .nav-dropdown .dropdown-menu a.active::before {
        transform: scale(1.4);
        opacity: 1;
    }

    /* Mobile CTA button (pinned to the bottom of the drawer) */
    .nav-cta,
    .nav-cta-torre {
        margin: auto 16px 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: auto;
        padding: 15px 24px !important;
        background: linear-gradient(135deg, var(--accent-gold) 0%, #B08D45 100%) !important;
        color: var(--primary-dark) !important;
        border-radius: var(--radius-full);
        font-weight: 700;
        font-size: 1rem;
        box-shadow: 0 10px 25px -8px rgba(197, 160, 89, 0.55);
        border: none !important;
        transition: var(--transition);
        min-height: 50px;
    }

    .nav-cta:hover,
    .nav-cta-torre:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px -8px rgba(197, 160, 89, 0.65);
    }

    /* Hero section fix: avoid fixed-height clipping and overlapping */
    .hero {
        height: auto;
        min-height: 100dvh;
        padding-top: calc(var(--header-height, 72px) + 36px);
        padding-bottom: 50px;
        overflow: visible;
    }

    .hero-title {
        font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    }

    /* Subpage Hero Responsive */
    .page-hero {
        padding: calc(var(--header-height, 72px) + 50px) 0 50px;
    }

    .page-title {
        font-size: clamp(2rem, 5vw, 2.7rem);
    }

    /* Grid adjustments */
    .about-grid,
    .contact-grid,
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-right: 0;
    }

    .footer {
        padding-bottom: 100px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        width: 100%;
        margin-top: 40px;
        padding-top: 24px;
    }

    .hero-stats .stat-item {
        text-align: center;
    }

    /* Values grid - balanced 2 columns on tablet */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .values-grid .value-card {
        grid-column: auto !important;
        margin: 0 !important;
        justify-self: stretch !important;
    }

    .values-grid .value-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
        max-width: 480px;
        justify-self: center !important;
    }

    /* Services grid - 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Small tablets & mobile phones (<= 768px) */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .values-grid .value-card {
        max-width: 100% !important;
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 30px 22px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 6.8vw, 2.7rem);
        line-height: 1.18;
        margin-bottom: 16px;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: clamp(0.98rem, 3.4vw, 1.15rem);
        margin-bottom: 26px;
        line-height: 1.55;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stats .stat-number {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .hero-stats .stat-label {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Subpage Hero Responsive */
    .page-hero {
        padding: calc(var(--header-height, 64px) + 36px) 0 40px;
    }

    .page-title {
        font-size: clamp(1.8rem, 6.5vw, 2.3rem);
    }

    .page-subtitle {
        font-size: 1.05rem;
    }

    .page-content {
        padding: 45px 0 60px;
    }

    .content-main h2 {
        font-size: 1.6rem;
        margin: 30px 0 16px;
    }

    /* Legal Navigation Sticky Offset */
    .legal-nav {
        top: var(--header-height, 60px);
        padding: 12px 0;
    }

    .legal-nav ul {
        gap: 8px;
    }

    .legal-nav a {
        padding: 8px 14px;
        font-size: 0.84rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        margin-bottom: 16px;
    }

    /* Email and text overflow fixes */
    .contact-item p,
    .footer-contact-link span {
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    /* Footer contact bar */
    .footer-contact-bar {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }

    .footer-contact-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 0.95rem;
    }

    .footer-contact-link span {
        font-size: 0.9rem;
        max-width: 100%;
    }

    /* Footer padding to avoid WhatsApp collision */
    .footer {
        padding-bottom: 100px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    /* Contact section adjustments */
    .contact-grid {
        gap: 32px;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-form {
        padding: 30px 20px;
        border-radius: var(--radius-md);
    }

    .contact-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
        margin-bottom: 24px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .contact-item h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .contact-item p {
        font-size: 0.92rem;
    }

    .footer-social {
        justify-content: center;
    }

    /* Reposition WhatsApp if cookie banner is visible */
    body.cookie-banner-active .whatsapp-float {
        bottom: 230px;
    }
}

/* Extra small screens (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 10px 0;
    }

    .logo-img {
        height: 38px;
        width: auto;
    }

    .logo-name {
        font-size: 1.05rem;
    }

    .logo {
        gap: 8px;
        min-width: 0;
    }

    .logo-tagline {
        font-size: 0.6rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .nav {
        width: min(90vw, 340px);
        padding-top: calc(var(--header-height, 60px) + 14px);
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 13px 10px;
    }

    .page-hero {
        padding: calc(var(--header-height, 60px) + 26px) 0 30px;
    }

    .page-title {
        font-size: 1.65rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 13px 20px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .hero-stats .stat-number {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
    }

    .hero-stats .stat-label {
        font-size: clamp(0.68rem, 2.5vw, 0.75rem);
        text-wrap: balance;
    }

    .contact-form {
        padding: 22px 16px;
    }

    .form-group input,
    .form-group textarea {
        padding: 13px 14px;
        font-size: 0.95rem;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float-btn svg {
        width: 26px;
        height: 26px;
    }

    body.cookie-banner-active .whatsapp-float {
        bottom: 250px;
    }
}

/* ================================================================
   COOKIE CONSENT BANNER
   ================================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner-inner {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.cookie-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-logo img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-logo-text {
    display: none;
}

.cookie-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-text h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-text h3 span {
    font-size: 1.3rem;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 0.9rem;
}

.cookie-text a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-text a:hover {
    color: var(--accent-gold-light);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--accent-gold), #B08D45);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-config {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    font-size: 0.85rem;
}

.cookie-btn-config:hover {
    color: var(--accent-gold);
}

/* Responsive Cookie Banner */
@media (max-width: 968px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .cookie-logo {
        justify-content: center;
    }

    .cookie-logo img {
        width: 50px;
        height: 50px;
    }

    .cookie-logo-text {
        display: block;
    }

    .cookie-logo-text span {
        display: block;
        color: var(--white);
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.1;
    }

    .cookie-logo-text .tagline {
        color: var(--accent-gold);
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .cookie-text h3 {
        justify-content: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .cookie-btn-accept,
    .cookie-btn-reject {
        flex: 1;
        min-width: 120px;
    }

    .cookie-btn-config {
        width: 100%;
        order: 3;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 16px;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ========================================
   TORRE DE CONTROL PAGE STYLES
   ======================================== */

/* Torre Hero */
.torre-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2744 50%, var(--primary) 100%);
    padding: 180px 0 100px;
    color: var(--white);
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.torre-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.torre-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.torre-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-gold);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.torre-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--detail-blue);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.torre-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-gold-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.2;
}

@keyframes float {

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

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.torre-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.torre-hero .breadcrumb {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.torre-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    flex: 1;
}

.torre-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.torre-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
}

.torre-highlight {
    display: block;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.torre-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.7;
}

.torre-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Torre Illustration */
.torre-illustration {
    position: relative;
    width: 350px;
    height: 450px;
    flex-shrink: 0;
}

.torre-svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.torre-line,
.torre-window {
    opacity: 0.9;
}

.torre-window {
    animation: windowGlow 3s infinite ease-in-out;
}

@keyframes windowGlow {

    0%,
    100% {
        fill: rgba(197, 160, 89, 0.1);
    }

    50% {
        fill: rgba(197, 160, 89, 0.25);
    }
}

/* Wave Animation */
.torre-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 500px;
    height: 500px;
    z-index: 1;
}

.torre-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    animation: waveExpand 4s infinite ease-out;
}

.torre-wave-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.torre-wave-2 {
    width: 200px;
    height: 200px;
    animation-delay: 1.3s;
}

.torre-wave-3 {
    width: 200px;
    height: 200px;
    animation-delay: 2.6s;
}

@keyframes waveExpand {
    0% {
        width: 200px;
        height: 200px;
        opacity: 0.6;
        border-color: rgba(197, 160, 89, 0.5);
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
        border-color: rgba(197, 160, 89, 0);
    }
}

/* Nav CTA Torre Button */
.nav-cta-torre {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light)) !important;
    color: var(--primary-dark) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.nav-cta-torre:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(197, 160, 89, 0.4);
}


/* Torre Services Grid */
.torre-services {
    background: var(--bg-body);
    padding: 100px 0;
}

.torre-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.torre-service-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.torre-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.torre-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.torre-service-card:hover::before {
    transform: scaleX(1);
}

.torre-service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.torre-service-card:hover .torre-service-icon {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
}

.torre-service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-gold);
    transition: var(--transition);
}

.torre-service-card:hover .torre-service-icon svg {
    stroke: var(--white);
}

.torre-service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.torre-service-list {
    list-style: none;
}

.torre-service-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.torre-service-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Torre Challenges Section */
.torre-challenges {
    background: var(--white);
    padding: 100px 0;
}

.torre-challenges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.torre-challenge-card {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.torre-challenge-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.torre-challenge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.torre-challenge-card:hover .torre-challenge-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
}

.torre-challenge-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--white);
}

.torre-challenge-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.torre-challenge-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Torre Benefits List */
.torre-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: var(--bg-body);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.torre-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.torre-benefit-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.torre-benefit-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-gold);
    flex-shrink: 0;
}

.torre-benefit-item span {
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

/* Torre Stats Section */
.torre-stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2744 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.torre-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(197, 160, 89, 0.1), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.08), transparent 50%);
}

.torre-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.torre-stat-item {
    text-align: center;
}

.torre-stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.torre-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* Torre Data Section */
.torre-data {
    background: var(--bg-body);
    padding: 100px 0;
}

/* Data Illustration Container */
.data-illustration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.data-illustration-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.data-people-img {
    width: 220px;
    height: auto;
    position: relative;
    z-index: 2;
}

/* Orbiting Screens Container */
.orbiting-screens {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Individual Orbiting Screens */
.orbit-screen {
    position: absolute;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
}

.orbit-screen svg {
    width: 100%;
    height: 100%;
}

/* Screen 1 - Top Left, orbits clockwise */
.orbit-screen-1 {
    width: 70px;
    animation: orbitScreen1 12s linear infinite;
}

/* Screen 2 - Top Right, orbits counter-clockwise */
.orbit-screen-2 {
    width: 80px;
    animation: orbitScreen2 14s linear infinite;
}

/* Screen 3 - Bottom Left, orbits clockwise slower */
.orbit-screen-3 {
    width: 55px;
    animation: orbitScreen3 10s linear infinite;
}

/* Screen 4 - Bottom Right, orbits counter-clockwise */
.orbit-screen-4 {
    width: 60px;
    animation: orbitScreen4 16s linear infinite;
}

/* Orbit Animations - Elliptical paths around center */
@keyframes orbitScreen1 {
    0% {
        top: 5%;
        left: 10%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        top: 20%;
        left: 75%;
        transform: rotate(5deg) scale(0.9);
    }

    50% {
        top: 70%;
        left: 70%;
        transform: rotate(0deg) scale(0.85);
    }

    75% {
        top: 65%;
        left: 5%;
        transform: rotate(-5deg) scale(0.95);
    }

    100% {
        top: 5%;
        left: 10%;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes orbitScreen2 {
    0% {
        top: 10%;
        right: 5%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        top: 60%;
        right: 70%;
        transform: rotate(-8deg) scale(0.9);
    }

    50% {
        top: 75%;
        right: 10%;
        transform: rotate(0deg) scale(0.85);
    }

    75% {
        top: 25%;
        right: 65%;
        transform: rotate(8deg) scale(0.95);
    }

    100% {
        top: 10%;
        right: 5%;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes orbitScreen3 {
    0% {
        bottom: 15%;
        left: 5%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        bottom: 60%;
        left: 65%;
        transform: rotate(10deg) scale(0.9);
    }

    50% {
        bottom: 70%;
        left: 20%;
        transform: rotate(0deg) scale(0.85);
    }

    75% {
        bottom: 30%;
        left: 70%;
        transform: rotate(-10deg) scale(0.95);
    }

    100% {
        bottom: 15%;
        left: 5%;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes orbitScreen4 {
    0% {
        bottom: 10%;
        right: 10%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        bottom: 55%;
        right: 65%;
        transform: rotate(-6deg) scale(0.9);
    }

    50% {
        bottom: 65%;
        right: 5%;
        transform: rotate(0deg) scale(0.85);
    }

    75% {
        bottom: 20%;
        right: 60%;
        transform: rotate(6deg) scale(0.95);
    }

    100% {
        bottom: 10%;
        right: 10%;
        transform: rotate(0deg) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .data-illustration-wrapper {
        width: 320px;
        height: 320px;
    }

    .data-people-img {
        width: 180px;
    }

    .orbit-screen-1 {
        width: 55px;
    }

    .orbit-screen-2 {
        width: 65px;
    }

    .orbit-screen-3 {
        width: 45px;
    }

    .orbit-screen-4 {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .data-illustration-container {
        margin-bottom: 40px;
    }

    .data-illustration-wrapper {
        width: 280px;
        height: 280px;
    }

    .data-people-img {
        width: 150px;
    }

    .orbit-screen-1 {
        width: 45px;
    }

    .orbit-screen-2 {
        width: 55px;
    }

    .orbit-screen-3 {
        width: 38px;
    }

    .orbit-screen-4 {
        width: 42px;
    }
}


.torre-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.torre-data-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.torre-data-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--detail-blue));
    opacity: 0;
    transition: var(--transition);
}

.torre-data-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.torre-data-card:hover::after {
    opacity: 1;
}

.torre-data-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.torre-data-card:hover .torre-data-icon {
    transform: rotate(5deg) scale(1.05);
}

.torre-data-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-gold);
}

.torre-data-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.torre-data-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Torre CTA Section */
.torre-cta {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #B08D45 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.torre-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 50%);
}

.torre-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.torre-cta h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.torre-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.torre-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.torre-cta .btn-primary {
    background: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

.torre-cta .btn-primary:hover {
    background: var(--primary);
}

.torre-cta .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.torre-cta .btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* Torre Other Services */
.torre-other-services {
    background: var(--white);
    padding: 100px 0;
}

.torre-other-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.torre-other-card {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.torre-other-card:hover {
    background: var(--bg-surface);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.torre-other-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--transition);
}

.torre-other-card:hover .torre-other-icon {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
}

.torre-other-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-dark);
    transition: var(--transition);
}

.torre-other-card:hover .torre-other-icon svg {
    stroke: var(--white);
}

.torre-other-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.torre-other-card span {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Torre Page Responsive */
@media (max-width: 1200px) {
    .torre-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .torre-other-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {

    .torre-services-grid,
    .torre-challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .torre-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .torre-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .torre-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .torre-other-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .torre-hero {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .torre-hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .torre-hero-content {
        max-width: 100%;
    }

    .torre-illustration {
        width: 280px;
        height: 360px;
        margin-top: 40px;
    }

    .torre-waves {
        width: 350px;
        height: 350px;
    }

    .torre-hero-title {
        font-size: 2rem;
    }

    .torre-hero-subtitle {
        font-size: 1.1rem;
    }

    .torre-hero-buttons {
        justify-content: center;
    }

    .torre-services-grid,
    .torre-challenges-grid,
    .torre-data-grid {
        grid-template-columns: 1fr;
    }

    .torre-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .torre-stat-number {
        font-size: 2.5rem;
    }

    .torre-benefits {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .torre-cta h2 {
        font-size: 1.8rem;
    }

    .torre-other-grid {
        grid-template-columns: repeat(2, 1fr);
    }


}

@media (max-width: 480px) {

    .torre-stats-grid,
    .torre-other-grid {
        grid-template-columns: 1fr;
    }

    .torre-cta-buttons {
        flex-direction: column;
    }

    .torre-cta-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Solo el botón recibe clics: el tooltip invisible no debe tapar el footer */
    pointer-events: none;
}

.whatsapp-float-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Tooltip message */
.whatsapp-tooltip {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    position: relative;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:has(.whatsapp-float-btn:hover) .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--primary-dark);
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float-btn {
        width: 55px;
        height: 55px;
    }

    .whatsapp-float-btn svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}