/* ===================================================
   SERVICIO24 - Agua Pura y Limpia
   Color Palette: Water Blue, White, Light Gray, Soft Green
   =================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #7DD3FC;
    --primary-bg: #E0F2FE;
    --secondary: #1E40AF;
    --accent: #10B981;
    --accent-light: #D1FAE5;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: url('imagens/bg-agua.jpg') center/cover fixed no-repeat;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn i {
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
}

.btn-whatsapp-sm:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--gray-900);
}

.logo-accent {
    color: var(--primary-light);
}

.navbar.scrolled .logo-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link {
    color: var(--gray-600);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--whatsapp);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 4px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-800);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 188, 235, 0.9) 0%, rgba(56, 175, 230, 0.9) 100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('imagens/hero-bg-pattern.png') center/cover no-repeat;
    opacity: 0.08;
    z-index: 1;
}

/* ===== WATER IMAGE LAYER ===== */
.hero-water-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-water-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: grid;
    grid-template-columns: auto auto;
    gap: 16px 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.trust-item i {
    color: var(--accent);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Blob background shape behind image */
.hero-image::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    animation: blob-morph 8s ease-in-out infinite;
    z-index: 0;
}

/* Decorative border ring */
.hero-image::after {
    content: '';
    position: absolute;
    width: 105%;
    height: 105%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%;
    animation: blob-morph 8s ease-in-out infinite reverse;
    z-index: 0;
}

.hero-image img {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    mix-blend-mode: multiply;
    animation: hero-float 4s ease-in-out infinite;
}

@keyframes blob-morph {

    0%,
    100% {
        border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    }

    25% {
        border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
    }

    50% {
        border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%;
    }

    75% {
        border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%;
    }
}

/* Decorative floating circles */
.hero-image-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.hero-image-decoration.deco-1 {
    width: 20px;
    height: 20px;
    background: rgba(56, 189, 248, 0.4);
    top: 10%;
    right: -5%;
    animation: deco-float 5s ease-in-out infinite;
}

.hero-image-decoration.deco-2 {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 15%;
    left: -8%;
    animation: deco-float 6s ease-in-out infinite 1s;
}

.hero-image-decoration.deco-3 {
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.3);
    top: 5%;
    left: 5%;
    animation: deco-float 7s ease-in-out infinite 2s;
}

.hero-image-decoration.deco-4 {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    bottom: 5%;
    right: 10%;
    animation: deco-float 4s ease-in-out infinite 0.5s;
}

.hero-image-decoration.deco-5 {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(56, 189, 248, 0.4);
    background: transparent;
    top: 40%;
    right: -10%;
    animation: deco-float 5.5s ease-in-out infinite 1.5s;
}

@keyframes deco-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-12px) scale(1.1);
        opacity: 1;
    }
}

@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 4;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: rgba(248, 250, 252, 0.7);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-bg), #DBEAFE);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.service-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== FEATURES / POR QUÉ ELEGIRNOS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary-bg), #DBEAFE);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== GALERÍA ===== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.galeria-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 4 / 3;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.galeria-item:hover img {
    transform: scale(1.05);
}

/* ===== CALIDAD DEL AGUA ===== */
.calidad-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calidad-image {
    position: relative;
}

.calidad-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.calidad-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: linear-gradient(135deg, var(--accent), #059669);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
}

.calidad-badge i {
    font-size: 24px;
}

.calidad-text h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    margin-bottom: 20px;
}

.calidad-text p {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.7;
}

.calidad-list {
    margin-bottom: 32px;
}

.calidad-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--gray-700);
}

.calidad-list li i {
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== STATS / TRUST ===== */
.section-trust {
    background: linear-gradient(135deg, #0C4A6E 0%, #0369A1 50%, #0EA5E9 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.trust-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.trust-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.2);
    object-fit: cover;
    border: 0;
}

.trust-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 74, 110, 0.7);
    z-index: 1;
}

.section-trust .container {
    position: relative;
    z-index: 2;
}

.section-trust .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-trust h2 {
    color: var(--white);
}

.section-trust .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
    font-size: 32px;
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-container,
.contact-info-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.contact-form-container h3,
.contact-info-container h3 {
    font-size: 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-800);
}

.contact-form-container h3 i {
    color: var(--primary);
}

.contact-info-container h3 i {
    color: var(--whatsapp);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--gray-800);
    transition: var(--transition);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-info-container p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-details {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item i {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--gray-800);
}

.contact-item span {
    font-size: 14px;
    color: var(--gray-500);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
}

.footer-map {
    width: 100%;
    line-height: 0;
}

.footer-map iframe {
    display: block;
    filter: grayscale(20%);
}

.footer-content {
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 22px;
}

.footer-logo .logo-accent {
    color: var(--primary);
}

.footer-logo .logo-img {
    width: 36px;
    height: 36px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-400);
    max-width: 350px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 15px;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--primary);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
    color: var(--gray-500);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
    background: var(--whatsapp-dark);
}

.whatsapp-tooltip {
    position: absolute;
    right: 76px;
    background: var(--gray-800);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
        text-align: left;
    }

    .hero-image img {
        max-width: 360px;
    }

    .calidad-content {
        grid-template-columns: 1fr;
    }

    .calidad-badge {
        right: 16px;
        bottom: -10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px 32px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s ease;
        align-items: flex-start;
        gap: 4px;
        z-index: 1000;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        color: var(--gray-700);
        font-size: 17px;
        width: 100%;
        padding: 12px 16px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--primary-bg);
        color: var(--primary);
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-toggle.active span {
        background: var(--gray-800) !important;
    }

    .hero-image img {
        max-width: 280px;
    }

    .stat-number {
        font-size: 36px;
    }

    .hero-trust {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 28px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .service-card,
    .feature-card {
        padding: 24px 16px;
    }

    .service-icon,
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .back-to-top {
        bottom: 84px;
        right: 24px;
    }

    .trust-video-bg iframe {
        width: 300%;
        height: 300%;
        transform: translate(-50%, -50%) scale(1.5);
    }
}