/* =========================================== */
/* style.css - ESTILOS GENERALES OPTIMIZADOS */
/* Maison Propre Rabat - Nueva Paleta Azul */
/* =========================================== */

/* ===== NUEVA PALETA DE COLORES AZULES ===== */
:root {
    /* PALETA AZUL PRINCIPAL */
    --blue-deep: #015C92;        /* Azul Marino Profundo */
    --blue-corporate: #2D82B5;   /* Azul Corporativo */
    --blue-light: #53A7D8;       /* Azul Claro */
    --blue-sky: #88CDF6;         /* Azul Cielo */
    
    /* COLORES QUE SE MANTIENEN */
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #128C7E;
    --accent-orange: #ff9f1c;
    --accent-orange-dark: #e68a00;
    
    /* ALIAS PARA MANTENER COMPATIBILIDAD */
    --primary-blue: var(--blue-deep);
    --primary-blue-dark: var(--blue-corporate);
    
    /* COLORES DE TEXTO Y FONDO */
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
    
    /* COLORES DE REDES SOCIALES */
    --facebook-blue: #1877F2;
    --instagram-purple: #E4405F;
    --pinterest-red: #BD081C;
    
    /* ESPACIADO */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    
    /* BORDER RADIUS */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --radius-circle: 50%;
    
    /* SOMBRAS */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 80px; /* Compensar header fijo */
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ===== ENLACES ===== */
a {
    color: var(--blue-deep);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--blue-corporate);
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-corporate));
    color: var(--bg-white);
    border-color: var(--blue-deep);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-corporate), var(--blue-light));
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--accent-orange);
    color: var(--text-dark);
    border-color: var(--accent-orange);
}

.btn-secondary:hover {
    background: var(--accent-orange-dark);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: var(--bg-white);
    border-color: var(--whatsapp-green);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-green-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== IMÁGENES RESPONSIVAS ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optimización para Lazy Loading */
img[data-src], 
img[data-srcset] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.lazy-loading {
    background: linear-gradient(90deg, var(--bg-gray) 25%, #e0e0e0 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

img.lazy-loaded {
    opacity: 1 !important;
}

img.lazy-error {
    background-color: #ffe6e6;
    border: 1px dashed #ff6b6b;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Contenedores de imágenes */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* ===== HEADER ===== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: var(--blue-deep);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    height: 50px;
    flex-shrink: 0;
    z-index: 1001;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navegación */
.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--blue-deep);
}

.nav-menu a.active {
    color: var(--blue-deep);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--blue-deep);
    border-radius: 2px;
}

/* Header scrolled - cambios de color */
.header.scrolled .nav-menu a {
    color: var(--bg-white);
}

.header.scrolled .nav-menu a:hover {
    color: var(--blue-sky);
}

.header.scrolled .nav-menu a.active {
    color: var(--blue-sky);
}

.header.scrolled .nav-menu a.active::after {
    background-color: var(--blue-sky);
}

.header.scrolled .logo img {
    filter: brightness(0) invert(1);
}

/* Botón Réserver */
.btn-reserva {
    background: var(--accent-orange);
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    border: 2px solid var(--accent-orange);
    transition: all 0.3s ease;
    z-index: 1001;
}

.btn-reserva:hover {
    background: transparent;
    color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header.scrolled .btn-reserva {
    background: var(--blue-light);
    color: var(--bg-white);
    border-color: var(--blue-light);
}

.header.scrolled .btn-reserva:hover {
    background: transparent;
    color: var(--blue-light);
    border-color: var(--blue-light);
}

/* Menú móvil */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px auto;
    transition: all 0.3s ease;
}

.header.scrolled .nav-toggle span {
    background: var(--bg-white);
}

/* Overlay móvil */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== FOOTER CON OLAS ANIMADAS ===== */
.footer {
    background: var(--blue-deep);
    color: var(--bg-white);
    padding: 0;
    position: relative;
    min-height: 300px;
    overflow: hidden;
    margin-top: auto;
}

/* Contenedor de las olas animadas */
.footer-waves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-waves-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background-color: var(--blue-deep);
    background-image: linear-gradient(to bottom, rgba(1, 92, 146, 0.9), var(--blue-deep));
}

.footer-waves-container svg path {
    fill: url(#bg);
}

/* Contenido del footer encima de las olas */
.footer-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 30px;
    background: linear-gradient(to bottom, 
        rgba(1, 92, 146, 0.7) 0%,
        rgba(1, 92, 146, 0.9) 30%,
        rgba(1, 92, 146, 0.95) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

/* Columnas del footer */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-address {
    text-align: left;
}

.footer-links-horizontal {
    text-align: center;
}

.footer-social {
    text-align: right;
}

/* Dirección */
.footer-address-info .address {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-address-info .address i {
    color: var(--blue-sky);
    margin-right: 10px;
}

/* Enlaces horizontales */
.footer-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    padding: 0 8px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-link:hover {
    color: var(--blue-sky);
    transform: translateY(-2px);
}

.footer-link + .footer-link::before {
    content: '|';
    color: rgba(255, 255, 255, 0.5);
    margin-right: 8px;
}

/* Social */
.footer-social .social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-circle);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--blue-light);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.social-icon img {
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
}

/* Copyright */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== CHAT FLOTANTE ===== */
.chat-float {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 1000;
}

.chat-main-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-corporate));
    border-radius: var(--radius-circle);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.chat-main-button:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl);
}

.chat-main-button img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.chat-pulse-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 2px solid var(--blue-light);
    border-radius: var(--radius-circle);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.chat-tooltip {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--blue-deep);
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    box-shadow: var(--shadow-sm);
}

.chat-float:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-options {
    position: absolute;
    bottom: 115px;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    min-width: 220px;
    border: 1px solid var(--border-color);
}

.chat-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-decoration: none;
}

.chat-option:hover {
    background: var(--bg-light);
    transform: translateX(-5px);
}

.chat-option.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-green);
}

.chat-option.phone {
    background: rgba(83, 167, 216, 0.1);
    color: var(--blue-corporate);
}

.chat-option.email {
    background: rgba(1, 92, 146, 0.1);
    color: var(--blue-deep);
}

.chat-option img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ===== BOTÓN SUBIR ===== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--blue-deep);
    color: var(--bg-white);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--bg-white);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue-corporate);
    transform: translateY(-5px) scale(1.1);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-corporate));
    color: var(--bg-white);
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SERVICES SECTION ===== */
#services-rabat {
    background: var(--bg-light);
}

.services-grid-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card-image {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.service-card-image:hover {
    transform: translateY(-10px);
}

.service-image-container {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-image:hover .service-image-container img {
    transform: scale(1.1);
}

.service-title-link {
    padding: 20px;
    background: var(--bg-white);
}

.service-title-link h3 {
    margin: 0;
}

.service-title-link a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title-link a:hover {
    color: var(--blue-deep);
}

/* ===== TRUSTED COMPANIES ===== */
.trusted-companies {
    background: var(--bg-white);
    padding: var(--spacing-lg) 0;
}

.logo-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.logo-slider-track {
    display: flex;
    animation: slide 30s linear infinite;
    width: max-content;
}

.logo-slider-track img {
    height: 80px;
    width: auto;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo-slider-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== PRICE SECTION ===== */
#prix {
    background: var(--bg-light);
}

.carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.price-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue-light);
}

.price-card.recommended {
    border-color: var(--accent-orange);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.price-card h3 {
    color: var(--blue-deep);
    margin-bottom: 15px;
}

.price-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blue-corporate);
    margin-bottom: 20px;
}

.price-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.price-card ul li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.price-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--whatsapp-green);
    font-weight: bold;
}

.price-card .btn-whatsapp {
    width: 100%;
    text-align: center;
}

/* ===== TWO COLUMNS SECTION ===== */
.two-columns-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.column-left, .column-right {
    width: 100%;
}

/* Before-After Slider */
.before-after-section {
    width: 100%;
}

.section-title {
    font-size: 2rem;
    color: var(--blue-deep);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.before-after-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.slider-item {
    width: 100%;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: col-resize;
}

.before-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-label, .after-label {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-weight: bold;
}

.before-label {
    left: 20px;
    background: var(--blue-deep);
}

.after-label {
    right: 20px;
    background: var(--whatsapp-green);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    cursor: col-resize;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.handle-line {
    width: 100%;
    height: 100%;
    background: white;
}

.handle-circle {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--blue-deep);
}

.handle-circle:before, .handle-circle:after {
    content: '◄';
    color: var(--blue-deep);
    font-size: 12px;
    position: absolute;
}

.handle-circle:after {
    content: '►';
    left: 20px;
}

.slider-caption {
    margin-top: 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 0 20px;
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form-title {
    color: var(--blue-deep);
    margin-bottom: 10px;
    font-size: 2rem;
}

.contact-form-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--blue-light);
    background: var(--bg-white);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-corporate));
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== SUBSCRIPTION SECTION ===== */
.subscription-section {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-corporate));
    padding: 60px 0;
    color: var(--bg-white);
    text-align: center;
}

.subscription-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.subscription-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--bg-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subscription-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.subscription-offer {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-offer h3 {
    color: var(--bg-white);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.subscription-offer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

.subscription-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.subscription-input {
    flex: 1;
    min-width: 250px;
    padding: 18px 25px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.subscription-input:focus {
    outline: none;
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.subscription-btn {
    padding: 18px 35px;
    background: var(--accent-orange);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.subscription-btn:hover {
    background: var(--accent-orange-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .two-columns-section {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-col {
        text-align: center !important;
    }
    
    .footer-social .social-icons {
        justify-content: center;
    }
    
    .footer {
        min-height: 350px;
    }
    
    .footer-content {
        padding: 50px 0 25px;
    }
    
    .two-columns-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid-images,
    .carousel-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .header .container {
        height: 70px;
    }
    
    .logo {
        height: 45px;
    }
    
    /* Menú móvil */
    .nav-toggle {
        display: block;
    }
    
    .nav {
        position: static;
        transform: none;
        margin-left: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s ease;
        gap: 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--bg-gray);
    }
    
    .nav-menu a {
        padding: 18px 0;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .nav-menu a.active::after {
        width: 4px;
        height: 100%;
        left: -30px;
        top: 0;
    }
    
    .mobile-overlay {
        display: block;
    }
    
    /* Botón Réserver en móvil */
    .btn-reserva {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        padding: 10px 20px;
        font-size: 0.9rem;
        z-index: 1002;
    }
    
    /* Animación hamburguesa */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Header scrolled en móvil */
    .header.scrolled .nav-menu {
        background: var(--blue-deep);
    }
    
    .header.scrolled .nav-menu a {
        color: var(--bg-white);
    }
    
    .header.scrolled .nav-menu a:hover {
        color: var(--blue-sky);
    }
    
    /* Footer en móvil */
    .footer {
        min-height: 400px;
    }
    
    .footer-content {
        padding: 40px 0 20px;
    }
    
    /* Services y carrusel */
    .services-grid-images,
    .carousel-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Hero buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Contact form */
    .contact-form-container {
        padding: 30px 20px;
    }
    
    /* Subscription */
    .subscription-form {
        flex-direction: column;
    }
    
    .subscription-input,
    .subscription-btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Chat flotante móvil */
    .chat-float {
        bottom: 30px;
        right: 20px;
    }
    
    .chat-main-button {
        width: 80px;
        height: 80px;
    }
    
    .chat-main-button img {
        width: 55px;
        height: 55px;
    }
    
    .chat-options {
        min-width: 200px;
        padding: 15px;
        bottom: 95px;
    }
    
    /* Botón subir */
    .back-to-top {
        bottom: 30px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Logo slider */
    .logo-slider-track img {
        height: 60px;
        margin: 0 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
    
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .header .container {
        height: 65px;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .btn-reserva {
        right: 55px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .footer {
        min-height: 450px;
    }
    
    .footer-content {
        padding: 30px 0 15px;
    }
    
    .footer-grid {
        gap: 20px;
    }
    
    .footer-links-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-link + .footer-link::before {
        display: none;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-icon img {
        width: 20px;
        height: 20px;
    }
    
    .before-after-slider {
        height: 300px;
    }
    
    .subscription-title {
        font-size: 2rem;
    }
    
    .subscription-offer h3 {
        font-size: 1.5rem;
    }
    
    .chat-float {
        bottom: 25px;
        right: 15px;
    }
    
    .chat-main-button {
        width: 70px;
        height: 70px;
    }
    
    .chat-main-button img {
        width: 45px;
        height: 45px;
    }
    
    .chat-options {
        min-width: 180px;
        bottom: 85px;
    }
    
    .back-to-top {
        bottom: 25px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== SEO OPTIMIZATIONS ===== */
/* Evitar layout shifts */
.service-card-image,
.price-card,
.testimonial-card,
.before-after-container {
    contain: layout style paint;
}

/* Mejorar Core Web Vitals */
.service-image-container {
    aspect-ratio: 16/9;
    background: var(--bg-gray);
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Before-After slider container */
.before-after-slider {
    contain: layout style paint;
}