@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

:root {
    --ms-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --header-height: 68px; /* Aumentado de 54px a 68px para dar espacio al logo */
    --accent-blue: #0078d4;
    --accent-blue-hover: #005a9e;
    --whatsapp-green: #25d366;
    --whatsapp-green-hover: #1da851;
    --phone-gray: #4b5563;
    --phone-gray-hover: #374151;
    --text-main: #262626;
    --text-muted: #616161;
    --bg-megamenu: #ffffff;
    --border-color: #e6e6e6;
}

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

body {
    font-family: var(--ms-font);
    color: #ffffff;
    background-color: #0f172a;
    background-image: linear-gradient(rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.75)), 
                      url('https://reparar-surface.es/image/pro-back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===== CABECERA PRINCIPAL ===== */
.surface-header { width: 100%; height: var(--header-height); background: #ffffff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 99999; overflow: visible; }
.header-container { max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.brand-container { display: flex; align-items: center; gap: 12px; height: 100%; flex-shrink: 0; }
.header-logo { height: 42px; /* Aumentado un 50% (de 28px a 42px) */ width: auto; object-fit: contain; display: block; }
.mobile-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--text-main); cursor: pointer; padding: 4px 8px; line-height: 1; }
.brand { display: flex; align-items: center; text-decoration: none; height: 100%; font-weight: 700; font-size: 18px; color: var(--text-main); white-space: nowrap; }
.brand span { color: var(--accent-blue); }

/* ===== NAVEGACIÓN ESCRITORIO ===== */
.main-nav { display: flex; align-items: center; height: 100%; flex-grow: 1; margin-left: 15px; }
.nav-list { display: flex; list-style: none; height: 100%; margin: 0; padding: 0; }
.nav-item { display: flex; align-items: center; height: 100%; position: static; }
.nav-link { padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--text-main); text-decoration: none; height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; transition: all 0.15s ease; cursor: pointer; user-select: none; }
.nav-link:hover { background: #f2f2f2; border-bottom-color: var(--accent-blue); color: var(--accent-blue); }
.arrow-icon { display: inline-block; margin-left: 6px; font-size: 10px; transition: transform 0.2s ease; }

/* ===== MEGAMENÚ DESPLEGABLE (PC) ===== */
.megamenu { position: absolute; top: var(--header-height); left: 0; width: 100vw; background: var(--bg-megamenu); display: none; justify-content: center; padding: 24px 0; border-bottom: 2px solid var(--border-color); box-shadow: 0 12px 24px rgba(0,0,0,0.15); z-index: 100000; }
@media (min-width: 993px) {
    .nav-item:hover .megamenu { display: flex !important; }
    .nav-item:hover .arrow-icon { transform: rotate(180deg); }
}
.megamenu-content { width: 100%; max-width: 1200px; padding: 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 220px; gap: 25px; align-items: start; }
.megamenu-column h3 { font-size: 12px; font-weight: 700; margin-bottom: 10px; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e0e0e0; padding-bottom: 4px; }
.megamenu-column ul { list-style: none; }
.megamenu-column ul li a { display: block; padding: 5px 0; font-size: 12px; color: var(--text-main); text-decoration: none; transition: color 0.15s ease; }
.megamenu-column ul li a:hover { color: var(--accent-blue); text-decoration: underline; }
.megamenu-image { display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--border-color); padding-left: 20px; }
.megamenu-image img { width: 100%; max-width: 160px; height: auto; max-height: 120px; object-fit: contain; margin-bottom: 8px; display: block; }
.megamenu-image p { font-size: 11px; font-weight: 600; text-align: center; color: var(--text-muted); line-height: 1.3; }

/* ===== BOTONES DE ACCIÓN SUPERIOR ===== */
.actions-container { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12px; font-weight: 600; border-radius: 3px; text-decoration: none; color: white; transition: background 0.15s ease; white-space: nowrap; }
.action-btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-call { background: var(--phone-gray); }
.btn-call:hover { background: var(--phone-gray-hover); }
.btn-whatsapp { background: var(--whatsapp-green); }
.btn-whatsapp:hover { background: var(--whatsapp-green-hover); }
.btn-quote { background: var(--accent-blue); }
.btn-quote:hover { background: var(--accent-blue-hover); }

/* ===== CONTENEDOR PRINCIPAL ===== */
.content-wrapper { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.hero-surface { background: rgba(255, 255, 255, 0.95); padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); color: var(--text-main); margin-bottom: 40px; }
.hero-surface h1 { font-size: 28px; margin-bottom: 12px; font-weight: 700; color: var(--text-main); }
.hero-surface h1 span { color: var(--accent-blue); }
.hero-surface > p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 25px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card { background: #ffffff; padding: 20px; border-radius: 6px; border-top: 4px solid var(--accent-blue); box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center; text-align: center; }
.service-card img { width: 100%; max-width: 140px; height: 100px; object-fit: contain; margin-bottom: 15px; }
.service-card h3 { font-size: 16px; color: var(--text-main); margin-bottom: 8px; font-weight: 700; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== SECCIÓN DE CONTACTO ===== */
.contact-section-custom { background: rgba(255, 255, 255, 0.95); padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); color: var(--text-main); margin-bottom: 40px; }
.contact-section-custom .section-title { margin-bottom: 25px; }
.contact-section-custom .section-title h6 { font-size: 12px; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.contact-section-custom .section-title h2 { font-size: 24px; font-weight: 700; color: var(--text-main); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact-info-box p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 15px; }
.contact-info-box .color-text { color: var(--accent-blue); font-weight: 600; }
.contact-form .form-group { margin-bottom: 15px; }
.contact-form .form-control { width: 100%; padding: 12px 15px; font-size: 14px; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--ms-font); outline: none; transition: border-color 0.15s ease; }
.contact-form .form-control:focus { border-color: var(--accent-blue); }
.contact-form textarea.form-control { resize: vertical; }
.form-privacy-container { display: flex; align-items: flex-start; gap: 8px; margin: 15px 0; font-size: 13px; color: var(--text-muted); }
.form-privacy-container input { margin-top: 3px; }
.form-privacy-container a { color: var(--accent-blue); text-decoration: none; }
.form-privacy-container a:hover { text-decoration: underline; }
.btn-submit { background: var(--accent-blue); color: white; border: none; padding: 12px 25px; font-size: 14px; font-weight: 600; border-radius: 4px; cursor: pointer; transition: background 0.15s ease; width: 100%; }
.btn-submit:hover { background: var(--accent-blue-hover); }

/* ===== CONTENEDOR DE CIUDADES ===== */
.reparar-container { width: 100%; padding: 40px; background: rgba(255, 255, 255, 0.95); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-bottom: 40px; }
.reparar-container h3.section-title { font-size: 24px; color: var(--text-main); margin-bottom: 25px; text-align: left; font-weight: 700; text-transform: none; letter-spacing: normal; }
.reparar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 30px; }
.boton-ciudad { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 6px; text-decoration: none; color: var(--text-main); font-size: 13px; font-weight: 500; background-color: #f8fafc; transition: all 0.2s ease-in-out; box-sizing: border-box; }
.boton-ciudad:hover { background-color: var(--accent-blue); border-color: var(--accent-blue); color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 120, 212, 0.25); }
.footer-legal-links { text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; }
.link-privacidad { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); background-color: #f1f5f9; padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--border-color); transition: all 0.2s ease; }
.link-privacidad:hover { background-color: #e2e8f0; color: var(--text-main); border-color: #94a3b8; }

/* ===== MÓVIL (HASTA 992PX) ===== */
@media (max-width: 992px) {
    .mobile-toggle { display: block; }
    .main-nav { display: none; position: fixed; top: var(--header-height); left: 0; width: 100vw; height: calc(100vh - var(--header-height)); background: #ffffff; box-shadow: 0 10px 20px rgba(0,0,0,0.2); overflow-y: auto; margin-left: 0; z-index: 999999; padding-bottom: 60px; }
    .main-nav.active { display: block !important; }
    .nav-list { flex-direction: column; height: auto; width: 100%; }
    .nav-item { flex-direction: column; align-items: stretch; border-bottom: 1px solid #f0f0f0; height: auto; }
    .nav-link { height: 54px; padding: 0 20px; justify-content: space-between; font-size: 15px; border-bottom: none; background: #ffffff; width: 100%; }
    .megamenu { position: static; width: 100%; box-shadow: none; border-bottom: none; background: #f8f9fa; padding: 15px 20px; display: none; height: auto; }
    .nav-item.open > .megamenu { display: block !important; }
    .nav-item.open .arrow-icon { transform: rotate(180deg); }
    .megamenu-content { width: 100%; grid-template-columns: 1fr; gap: 15px; padding: 0; }
    .megamenu-image { border-left: none; border-top: 1px solid #e0e0e0; padding-left: 0; padding-top: 15px; margin-top: 10px; }
    .action-btn span { display: none; }
	/* SOLUCIÓN PARA EL FORMULARIO EN MÓVIL */
    .contact-layout {
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
} 

@media (min-width: 500px) and (max-width: 992px) { 
    .action-btn span { display: inline; }
} 

/* ===== SOLUCIÓN PARA LA IMAGEN QUE SOBRESALE ===== */
.image-banner-custom {
    padding: 0 !important;
}

.banner-container-styled {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

.banner-image-styled {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important; 
}

/* ========================================== */
/* ESTILOS DEL MURO DE COOKIES                */
/* ========================================== */
.cookie-wall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro casi opaco */
    z-index: 999999; /* Por encima del header y menús */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden; 
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Clase para mostrar el muro mediante JS */
.cookie-wall-overlay.show {
    visibility: visible;
    opacity: 1;
}

.cookie-wall-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: Arial, sans-serif;
}

.cookie-wall-content h2 {
    margin-top: 0;
    color: #111;
    font-size: 24px;
    margin-bottom: 15px;
}

.cookie-wall-content p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 15px;
}

.cookie-wall-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-accept, .btn-reject {
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.btn-accept {
    background-color: #0078D4; /* Azul corporativo */
    color: #ffffff;
}

.btn-accept:hover {
    background-color: #005a9e;
}

.btn-reject {
    background-color: #f3f2f1;
    color: #333333;
    border: 1px solid #ccc;
}

.btn-reject:hover {
    background-color: #e1dfdd;
}

.cookie-link {
    color: #0078D4;
    text-decoration: underline;
    font-size: 14px;
}

/* Bloquea el scroll de la web mientras el muro está visible */
body.no-scroll {
    overflow: hidden !important;
}