:root {
    /* Premium Color Palette (Apple-inspired) */
    --primary: #000000;
    --primary-soft: #1d1d1f;
    --secondary: #0071e3; /* characteristic Apple blue */
    --secondary-hover: #0077ed;
    --white: #ffffff;
    --off-white: #f5f5f7;
    --light-gray: #fbfbfd;
    --medium-gray: #d2d2d7;
    --dark-gray: #424245;
    --text-color: #1d1d1f;
    --text-muted: #86868b;
    
    /* Layout & Details */
    --nav-height: 80px; /* Final compact height */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-blur: blur(20px) saturate(180%);
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* Reset and global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Myriad Set Pro", "SF Pro Icons", "Apple Wrapped", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    color: var(--text-color);
    background: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    letter-spacing: -0.01em;
}

/* Layout Containers */
section {
    width: 100%;
    padding: 80px 0; /* Reduced to fix gaps */
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 15px; /* Reduced to maximize mobile space */
    }
}

/* Global Content Wrapper for Internal Pages */
.main-content {
    padding-top: var(--nav-height);
    min-height: calc(100vh - 400px); /* Ensure footer stays down */
}

/* Navigation styles - Apple Style */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #102a5c, #004080); /* Restored Original Blue */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 0 40px;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Gradient signature bar at the bottom */
nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #0feffb);
    opacity: 0.6;
    transition: var(--transition);
}

nav.scrolled {
    height: 65px; /* Compact on scroll */
    background: rgba(16, 42, 92, 0.98); 
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

nav.scrolled::after {
    height: 4px;
    opacity: 1;
    box-shadow: 0 0 15px rgba(15, 239, 251, 0.4);
}

nav .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

nav .logo img {
    height: 55px !important; /* Final logo height for 80px bar */
    width: auto;
    transition: var(--transition);
    display: block;
}

nav.scrolled .logo img {
    height: 45px !important;
}

nav .menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav .menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.85;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    position: relative;
    z-index: 1;
}

nav .menu a:hover {
    opacity: 1;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
}

nav .menu a::after {
    display: none; /* Removed old underline */
}

.dropdown-toggle i {
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

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

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    border-radius: 0 !important; /* Completely Square (Recto) */
    padding: 20px 0; /* More space to prevent crowding */
    display: flex;
    visibility: hidden;
    pointer-events: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 42, 92, 0.98) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 1002;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.4s ease;
}

/* Bridging the gap to fix the hover bug */
.submenu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown:hover .submenu {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.submenu a {
    padding: 12px 30px !important;
    font-size: 0.85rem !important;
    color: var(--white) !important;
    opacity: 0.8 !important;
    border-radius: 0 !important; /* Zero roundness */
    border-left: 0px solid transparent; /* Prepare for hover */
    transition: all 0.3s ease;
}

.submenu a:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.05) !important; /* Very subtle */
    color: var(--white) !important;
    border-left: 4px solid var(--white) !important; /* Minimalist Square Indicator */
    padding-left: 26px !important; /* Adjust for border width */
}

.submenu a::after {
    display: none;
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    nav .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(16, 42, 92, 0.98) !important;
        flex-direction: column;
        padding: 100px 40px;
        transition: var(--transition);
        z-index: 999;
        box-shadow: -10px 0 50px rgba(0,0,0,0.4);
        align-items: flex-start !important;
    }

    nav .menu.active {
        right: 0;
    }

    nav .menu a {
        font-size: 1.1rem;
        width: 100%;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .submenu {
        position: static;
        width: 100%;
        background: transparent;
        display: none;
        box-shadow: none;
        margin-top: 0;
        border: none;
        padding-left: 20px;
    }

    .submenu.active {
        display: flex;
    }
}

/* Slider styles - Apple Style */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(1, 22, 39, 0.7) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02); /* Minimal zoom to avoid blur */
    transition: transform 8s cubic-bezier(0.1, 0, 0.2, 1);
}

.slide.active img {
    transform: scale(1);
}

.slide-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start; /* Left aligned */
    align-items: center;
    padding-left: 10%; /* Spacing from left edge */
    z-index: 3;
}

.slide-content {
    text-align: left;
    max-width: 650px;
    width: 100%;
    opacity: 0;
    transform: translateX(-40px); /* Side entry animation base */
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateX(0);
}

.slide-content h2 {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1; 
    letter-spacing: -0.04em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: clamp(1rem, 4vw, 1.6rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.5;
}

.slide-btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* Left aligned */
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}

.slide.active .slide-btns {
    opacity: 1;
    transform: translateX(0);
}

/* Premium Buttons */
.btn {
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #0071e3, #00b4db);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 113, 227, 0.5);
    background: linear-gradient(135deg, #0077ed, #00c4ef);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.6);
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    .slider-container {
        height: 85vh;
    }
    .slide::before {
        width: 100%;
        background: radial-gradient(circle at center, rgba(1, 22, 39, 0.6) 0%, rgba(1, 22, 39, 0.4) 100%);
    }
    .slide-text {
        padding: 100px 20px 40px; /* Increased top padding to clear menu */
        justify-content: center; /* Center on mobile for space */
    }
    .slide-content {
        text-align: center;
        padding: 0;
    }
    .slide-content h2 {
        font-size: 2rem;
    }
    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .slide-btns {
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }
    .btn {
        padding: 10px 22px;
        font-size: 0.8rem;
    }
}

/* Content module - Apple Style */
.content-module {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--white);
    margin: 100px 0;
    overflow: visible; /* Changed to allow overlapping */
    gap: 80px;
    position: relative;
}

.content-module:nth-child(even),
.content-module.is-reversed {
    flex-direction: row-reverse;
}

.content-module .content-image {
    flex: 1.2;
    height: 650px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.content-module .content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.content-module:hover .content-image img {
    transform: scale(1.05);
}

/* Overlapping Glass Card Effect */
.content-text {
    flex: 1;
    padding: 60px;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
    margin-left: -20px; /* Minimal Overlap for integration */
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.content-module:nth-child(even) .content-text,
.content-module.is-reversed .content-text {
    margin-left: 0;
    margin-right: -20px; /* Minimal Overlap for integration */
}

.content-text h2 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-soft);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.content-text h2 span {
    display: block;
    background: linear-gradient(135deg, var(--secondary), #0feffb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.content-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .content-actions {
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}

/* New Helper Class for Mobile-First Titles */
.section-title-mobile-fix {
    text-align: center; 
    font-size: clamp(2.2rem, 8vw, 3.2rem); 
    font-weight: 800; 
    margin-bottom: clamp(30px, 5vw, 60px); 
    letter-spacing: -0.03em;
    color: var(--primary-soft);
    padding: 0 10px;
}

/* Stats variant */
.content-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Reveal Animations */
.reveal {
    opacity: 1; /* Always visible initially for reliability */
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    visibility: visible;
}

/* Subtle animation only if JS is working */
.js-enabled .reveal:not(.active) {
    opacity: 0.1;
    transform: translateY(10px);
}

/* Fallback for no JS or slow load */
.no-js .reveal,
.reveal:not(.active) {
    /* If the script hasn't run after 3s, show anyway */
    animation: reveal-fallback 0.8s forwards 3s;
}

@keyframes reveal-fallback {
    to { opacity: 1; transform: translateY(0); visibility: visible; }
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 1200px) {
    .content-text {
        margin-left: -50px;
    }
    .content-module:nth-child(even) .content-text,
    .content-module.is-reversed .content-text {
        margin-right: -50px;
    }
}

@media (max-width: 992px) {
    .content-module {
        flex-direction: column !important;
        gap: 0;
        margin: 60px 0;
        padding: 0 20px;
    }
    .content-module .content-image {
        width: 100%;
        height: 350px;
        margin-bottom: -40px;
        border-radius: var(--radius-lg);
    }
    .content-text {
        width: 100%; /* Take full width */
        margin: 0 auto !important;
        padding: 30px 20px; /* More compact for mobile */
        text-align: center;
    }
    .content-text h2 {
        font-size: 2.5rem;
    }
    .content-stats {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Quick Access Cards */
.quick-access {
    background: var(--light-gray);
    padding: 120px 0;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 40px);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
}

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

.service-card i {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-soft);
}

/* CTA Container - Apple Pro Look */
.cta-container {
    padding: 140px 0;
    background: var(--primary-soft);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.cta-container h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-container p {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: scale(1.05);
}




/* Footer - Midnight Premium Style */
.footer {
    background: linear-gradient(135deg, #102a5c, #004080);
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, #102a5c, #004080);
    background-size: 30px 30px, 100% 100%;
    color: var(--white);
    padding: 100px 0 60px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

/* Signature Gradient Bar at the top of the footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0071e3, #0feffb);
}

.footer .container-wide {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 80px;
}

@media (max-width: 992px) {
    .footer .container-wide {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    .footer-column {
        align-items: flex-start !important;
        text-align: left !important;
        padding-right: 0;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensures left alignment */
    text-align: left; /* Secondary reinforcement */
    position: relative;
    padding-right: 40px;
}

.footer-logo {
    max-height: 55px !important;
    width: auto !important;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    filter: brightness(1.1);
    margin-left: 0 !important; /* Forced Left Alignment */
    margin-right: auto;
}

/* Horizontal Separator under Logo */
.footer-logo-separator {
    width: 60px; /* Short elegant line */
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    margin-bottom: 20px;
    border: none;
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8); /* Standard white translucent text */
}

.footer h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 25px;
    color: var(--white); /* White headings */
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a, 
.footer-column p,
.footer-column a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a[href^="mailto:"] {
    color: #0feffb; /* Branded cian instead of default blue */
    font-weight: 500;
}

.footer-links a:hover {
    color: #0feffb;
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(15, 239, 251, 0.3);
}

/* Vertical Column Dividers */
.footer-column {
    position: relative;
    padding-right: 40px;
}

/* Elegant Contact Card */
.footer-contact-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -10px;
}

.footer-column:not(:last-child)::after {
    display: none; /* Removed dividers to favor the card look */
}

.footer iframe {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    border: none;
    margin-top: 20px;
    filter: grayscale(1) contrast(0.8) opacity(0.8);
    transition: var(--transition);
}

.footer iframe:hover {
    filter: none;
    opacity: 1;
}

.footer-credit {
    background: #001226; /* Darker midnight credit bar */
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-credit-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-credit-link:hover {
    opacity: 1;
    color: var(--secondary);
}

@media (max-width: 992px) {
    .footer .container-wide {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: left;
    }
    .footer-column {
        align-items: flex-start;
    }
    .footer-logo {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Internal Page Components (Standardized) */
.content-empresa, .content-calidad, .content-higiene, #content-cv {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    padding: 0 5%;
}

.content-empresa:nth-child(even), .content-calidad:nth-child(even) {
    flex-direction: row-reverse;
}

.content-empresa img, .content-calidad img, .content-higiene img, #content-cv img {
    flex: 1.2;
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.content-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .content-empresa, .content-calidad, .content-higiene, #content-cv {
        flex-direction: column !important;
        gap: 40px;
        padding: 0 20px;
        margin-bottom: 80px;
    }
    .content-empresa img, .content-calidad img, .content-higiene img, #content-cv img {
        height: 400px;
    }
    .content-text {
        text-align: center;
    }
    .content-text h2 {
        font-size: 2rem;
    }
}

/* Feature Block - Final Premium Redesign (Vibrant Version) */
body .feature-block {
    position: relative;
    background-image: url('../img/abstract-bg.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 70px 40px 30px !important; 
    border-radius: 40px !important;
    margin: 40px auto 15px !important;
    max-width: 1400px;
    display: flex;
    align-items: center;
    gap: 60px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(16, 42, 92, 0.08) !important;
    border: 1px solid rgba(0, 113, 227, 0.05);
}

/* Fading Top Effect - Emerges from white */
body .feature-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Abstract Texture & Geometric Details */
body .feature-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(15, 239, 251, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 113, 227, 0.04) 0%, transparent 60%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

.feature-block .feature-image, 
.feature-block .feature-text {
    position: relative;
    z-index: 2; /* Ensure content is above lines and fade */
}

.feature-block.centered {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.feature-block .feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-block .feature-text {
    flex: 1.2;
}

.feature-block.dark {
    background: var(--primary-soft);
    color: var(--white);
}

.feature-block.dark h2 {
    color: var(--white);
}

/* Service Card Refinement */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,0,0,0.08);
}

.service-card i {
    font-size: 3.2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* CTA Container - Final Premium Overhaul */
.cta-container {
    padding: clamp(60px, 10vw, 140px) 5%;
    background: radial-gradient(circle at 10% 20%, #102a5c 0%, #001226 100%);
    color: var(--white);
    text-align: center;
    border-radius: clamp(20px, 5vw, 40px); 
    margin: clamp(20px, 5vw, 60px) clamp(15px, 3vw, 40px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08); 
}

/* Background Glows */
.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.cta-container .container-wide {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.cta-container h2 {
    font-size: clamp(1.6rem, 7vw, 3.2rem); 
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--white) 30%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-container p {
    font-size: 1.3rem; /* More balanced size */
    font-weight: 300;
    opacity: 0.9;
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cta-quick-contacts {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.6;
    transition: var(--transition);
}

.quick-contact-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: #0feffb;
}

.quick-contact-item i {
    font-size: 1.4rem;
}

@media (max-width: 992px) {
    .cta-container {
        padding: 100px 30px;
        margin: 60px 20px;
    }
    .cta-container h2 {
        font-size: 2.8rem;
    }
    .cta-container p {
        font-size: 1.25rem;
    }
    .cta-quick-contacts {
        flex-direction: column;
        gap: 20px;
    }
}

/* Video Icon Refinement */
.video-icon-main {
    width: 350px;
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: floatIcon 4s infinite ease-in-out;
    cursor: pointer;
}

.video-icon-main:hover {
    transform: scale(1.08) rotate(1deg);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35)) brightness(1.1);
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* WhatsApp Floating Icon Fix and Redesign */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px; /* Refined size */
    height: 65px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    z-index: 5;
    animation: whatsappPulse 3s infinite;
}

.whatsapp-link img {
    width: 35px;
    height: auto;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Response for small screens */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .whatsapp-link img {
        width: 30px;
    }
}

/* Internal Pages Hero - Premium Wave Design */
.internal-hero {
    min-height: 400px; /* Increased for desktop presence */
    background: linear-gradient(135deg, #102a5c 0%, #0071e3 100%);
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230feffb' fill-opacity='0.04' d='M0,160 C320,300 420,300 720,160 C1020,20 1120,20 1440,160 V320 H0 Z'%3E%3C/path%3E%3C/svg%3E"), 
        linear-gradient(135deg, #102a5c 0%, #0071e3 100%);
    background-size: cover;
    background-position: center bottom;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding-top: 120px; /* Increased to give air below the logo */
    margin-bottom: 0; 
}

/* Centered Short Curve Bulge - Softer & Wider */
.internal-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px; /* Wider */
    height: 35px; /* Shallower */
    background: var(--white);
    clip-path: path('M 0 35 C 80 35 100 0 190 0 C 280 0 300 35 380 35 Z');
    z-index: 5;
}

.internal-hero h1 {
    font-size: clamp(2.2rem, 10vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--white) 30%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.internal-hero p {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .internal-hero {
        min-height: 350px;
        padding-top: 120px; /* Increased to avoid overlap with menu */
        padding-bottom: 40px;
    }
    .internal-hero h1 {
        font-size: 2.2rem;
    }
    .internal-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* FAQ Accordion - Persiana Effect (Refined for visibility and flow) */
.faq-accordion {
    width: 100%;
    margin-top: 30px;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Soft dark border for white background */
    transition: var(--transition);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 22px 10px;
    user-select: none;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.faq-header:hover {
    background: rgba(0, 113, 227, 0.03); /* Subtle blue hover */
}

.faq-header h3 {
    font-size: 1.2rem !important;
    margin: 0 !important;
    font-weight: 600;
    transition: var(--transition);
    color: #2c3e50; /* Dark slate text for white background */
}

.faq-item:hover .faq-header h3 {
    color: var(--secondary);
}

.faq-header i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--secondary);
    font-size: 1rem;
}

.faq-item.is-active .faq-header i {
    transform: rotate(180deg);
}

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.faq-item.is-active .faq-content {
    grid-template-rows: 1fr;
}

/* Premium Form Styles */
.input-field {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: #333;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    margin-top: 8px;
}

.input-field:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(15, 239, 251, 0.1);
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 15px;
}

.cta-button {
    background: linear-gradient(135deg, #0071e3 0%, #0feffb 100%);
    color: var(--white);
    border: none;
    padding: clamp(14px, 3vw, 18px) clamp(25px, 5vw, 30px);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.2);
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Final scale adjustment for CTA main button */
.cta-container .btn-primary {
    padding: clamp(15px, 4vw, 20px) clamp(30px, 8vw, 60px) !important;
    font-size: clamp(0.95rem, 3vw, 1.2rem) !important;
    width: auto;
    max-width: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.3);
    filter: brightness(1.1);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Global Mobile Padding Override */
@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    .container-wide {
        padding: 0 12px;
    }
    .cta-container {
        margin: 30px 12px !important;
        padding: 50px 20px !important;
    }
}

.faq-content-inner {
    min-height: 0;
    padding: 0 10px 20px;
    color: #555; /* Darker grey text for response */
    line-height: 1.7;
    font-size: 1.05rem;
}
