/* ============================
   VARIABLES Y RESET
============================ */
:root {
    --color-primario: #0c2454;
    --color-secundario: #1a3a7a;
    --color-fondo: #f5f5f7;
    --color-texto: #222222;
    --color-texto-suave: #555555;
    --color-borde-suave: #d2d2d7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* ============================
   HEADER Y NAVBAR
============================ */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--color-borde-suave);
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ← CAMBIO CLAVE */
    gap: 14px; /* ← separación limpia entre elementos */
}


.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primario);
	white-space: nowrap; /* evita saltos de línea */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px; /* separación entre texto y logo */
}

.nav-logo-img {
    height: 32px;     /* tamaño perfecto para navbar */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 18px;
	margin-left: 275px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--color-texto-suave);
}

.nav-links a.active {
    color: var(--color-primario);
    font-weight: 600;
}


/* ============================
   BOTONES
============================ */
.btn-primary {
    background: var(--color-primario);
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: var(--color-secundario);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primario);
    border-radius: 999px;
    padding: 9px 18px;
    border: 1px solid var(--color-primario);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background: var(--color-primario);
    color: #ffffff;
}


/* ============================
   LAYOUT GENERAL
============================ */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}


/* ============================
   HERO (INDEX)
============================ */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    margin-top: 20px;
}

.hero-title {
    font-size: 2.4rem;
    color: var(--color-primario);
    line-height: 1.6;
}


.hero-text h1 {
    font-size: 2.2rem;
    color: var(--color-primario);
    margin-bottom: 10px;
}

.hero-text p.subtitle {
    font-size: 1.05rem;
    color: var(--color-texto-suave);
    margin-bottom: 18px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--color-borde-suave);
    color: var(--color-texto-suave);
}

.hero-badges .badge {
    background: #eef2f7;
    border: none;
    color: var(--color-primario);
    font-weight: 600;
    padding: 8px 14px;
    font-size: 0.78rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-badges .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}


.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--color-texto-suave);
}

/* ============================
   DESTACADOS (VALORES)
============================ */
.highlights {
    margin-top: 40px;
    padding: 40px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.highlight-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid var(--color-borde-suave);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.highlight-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.highlight-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 12px;
    opacity: 0.9;
}

.highlight-item h3 {
    font-size: 1.1rem;
    color: var(--color-primario);
    margin-bottom: 6px;
}

.highlight-item p {
    font-size: 0.9rem;
    color: var(--color-texto-suave);
}

/* ============================
   SLIDER HERO
============================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 12px;
    border: 1px solid #0c2454;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}


/* ============================
   SECCIONES GENERALES
============================ */
.section {
    margin-top: 40px;
}

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 1.6rem;
    color: var(--color-primario);
	margin-bottom: 5px;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--color-texto-suave);
}


/* ============================
   CARDS (INDEX + SERVICIOS)
============================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--color-borde-suave);
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--color-primario);
}

.card p {
    font-size: 0.9rem;
    color: var(--color-texto-suave);
}

.card ul {
    margin-top: 8px;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--color-texto-suave);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}


/* ============================
   TESTIMONIOS (INDEX)
============================ */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.testimonio {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--color-borde-suave);
}

.testimonio p.quote {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.testimonio p.author {
    font-size: 0.85rem;
    color: var(--color-texto-suave);
}



/* ============================
   FRASE FINAL
============================ */

.after-testimonials {
    padding: 40px 20px;
    text-align: center;
}

.after-testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.after-testimonials-line {
    width: 70px;
    height: 3px;
    background: var(--color-primario);
    margin: 0 auto 18px auto;
    border-radius: 3px;
}


#after_testimonials_text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primario);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    letter-spacing: 0.3px;
}


/* ============================
   LIGHTBOX (SERVICIOS)
============================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    color: #ddd;
}

/* ============================
   NOSOTROS · NUESTRA HISTORIA
============================ */

.section-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
}

#nosotros_desc {
    text-align: justify;
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--color-texto-suave);
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--color-borde-suave);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Espaciado entre párrafos dentro del texto largo */
#nosotros_desc br {
    margin-bottom: 12px;
}

/* Tarjetas de la sección nosotros */
.cards-grid {
    margin-top: 40px;
}

.cards-grid .card {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--color-borde-suave);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: left;
}

.cards-grid .card h3 {
	margin-top: 10px;
    margin-bottom: 10px;
    color: var(--color-primario);
}

.cards-grid .card p {
    text-align: justify;
    line-height: 1.6;
    color: var(--color-texto-suave);
}

/* ============================
   FRASE DESTACADA · NOSOTROS
============================ */

.nosotros-frase {
    margin-top: 40px;
    text-align: center;
}

.nosotros-linea {
    width: 80px;
    height: 3px;
    background: var(--color-primario);
    margin: 0 auto 16px auto;
    border-radius: 3px;
}

.nosotros-destacado {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-texto);
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}


/* ============================
   CONTACTO
============================ */
.contact-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.contact-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--color-borde-suave);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-card h2 {
    color: var(--color-primario);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--color-texto-suave);
    margin-bottom: 20px;
}

/* ============================
   DATOS DE CONTACTO
============================ */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
    align-items: stretch;
}

.info-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--color-borde-suave);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* Centrado y distribución del contenido */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* Ambas tarjetas ocupan la misma altura */
    min-height: 360px;
}

.info-card h3 {
    color: var(--color-primario);
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.info-card p {
    width: 100%;
    margin-bottom: 10px;
    color: var(--color-texto-suave);
    line-height: 1.5;
}

.info-card p strong {
    color: var(--color-texto);
}

/* ============================
   QR
============================ */

.qr-wrapper {
    margin-top: auto;
    padding-top: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
}

.qr-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid var(--color-borde-suave);
}

.qr-text {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--color-texto-suave);
}

/* ============================
   MAPA
============================ */

.info-card iframe {
    width: 100%;
    max-width: 500px;
    height: 200px;
    margin-top: auto;
    border: 0;
    border-radius: 10px;
	padding-bottom: 10px;
}

/* ============================
   FIX FORMULARIO CONTACTO
============================ */

.contact-card form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* separación limpia entre campos */
    text-align: left; /* evita deformación del texto */
}

.contact-card label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-texto);
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid var(--color-borde-suave);
    background: #fafafa;
    resize: none;
}

.contact-card textarea {
    min-height: 140px;
}

#btn_enviar {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 6px;
}

#contact_section {
    scroll-margin-top: 100px; /* ajusta según la altura del navbar */
}

input,
textarea,
select {
    font-size: 16px !important;
}

/* MENSAJE DE ESTADO */
#form-status {
    margin-top: 15px;
    font-weight: 600;
    color: var(--color-primario);
    text-align: center;
}


/* ============================
   MENÚ BROCHA (RESPONSIVE)
============================ */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.brush-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    background-image: url('../img/icon-brocha.jpg');
    background-size: contain;
}


/* ============================
   SELECTOR DE IDIOMAS
============================ */
.flag {
    width: 18px;
    height: 12px;
    margin-right: 6px;
}

/* Escritorio */
.lang-selector {
	position: relative;   /* <-- IMPORTANTE */
    margin-left: auto; /* empuja el selector hacia la derecha */
    margin-right: 10px; /* pequeño espacio */
}

#btn_presupuesto {
    margin-right: 0;
}

/* Botón solicitar presupuesto (ESCRITORIO) */
.btn-solicitar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-solicitar .wa-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}


/* Icono dentro del botón de solicitar presupuesto */
.btn-solicitar .wa-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}


#lang-current {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;

    width: 100%;
    min-width: unset;

    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 200;
}

.lang-menu button {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
}

.lang-menu button:hover {
    background: #f0f0f0;
}

/* Móvil */
.lang-selector-mobile {
    display: none;
    position: relative;
    margin-right: 6px; /* pequeño espacio */
}

#lang-current-mobile {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-menu-mobile{
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;

    width: 100%;
    min-width: unset;

    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 200;
}

.lang-menu-mobile button {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
}

.lang-menu-mobile button:hover {
    background: #f0f0f0;
}

/* WhatsApp móvil */
.btn-whatsapp-mobile {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp-mobile .wa-icon {
    width: 24px;
    height: 24px;
    max-width: none;
}


footer {
    background: #ffffff;
    border-top: 1px solid var(--color-borde-suave);
    padding: 20px 10px;
    text-align: center;
}

#footer_text {
    font-size: 0.9rem;
    color: var(--color-texto-suave);
    display: inline-block;
    line-height: 1.4;
}

/* ============================
   AVISO DE COOKIES
============================ */

#cookie_banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;                /* 🔥 Ocupa todo el ancho */
    background: #ffffff;
    border-top: 1px solid var(--color-borde-suave);
    padding: 15px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between; /* 🔥 Texto a la izquierda, botón a la derecha */
    align-items: center;
    z-index: 9999;
}

#cookie_text {
    font-size: 0.9rem;
    color: var(--color-texto);
    margin: 0;
}

#cookie_accept {
    background: var(--color-primario);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}


/* ============================
   RESPONSIVE (TODO AL FINAL)
============================ */
@media (max-width: 820px) {
	
    .hero-title {
        line-height: 1.4;
    }
	
	.hero-text h1 {
		font-size: 2.3rem;
		color: var(--color-primario);
		margin-bottom: 10px;
	}	
		
    .navbar{
        gap:2px;
		padding: 12px 4px 12px 20px;
    }


	
	.btn-whatsapp-mobile {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-right: 4px;
	}	

    .lang-selector-mobile{
        margin-right:2px;
    }
	
	.nav-logo{
    flex:1;
	}

    .nav-links,
    .btn-solicitar {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #ffffff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        gap: 12px;
        z-index: 100;
    }

    .nav-links.open a {
        font-size: 1rem;
        padding: 8px 0;
    }

    .lang-selector {
        display: none;
    }

	.lang-selector-mobile{
		display:block;
		margin-right:1px;
	}

    .hero {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
	
    .hero-badges {
        justify-content: center;   /* ← CENTRADO REAL */
        gap: 8px;                  /* un poco más compacto */
        margin-bottom: 26px;       /* ajustado para móvil */
    }	
	
    #footer_text {
        font-size: 0.85rem;
    }


    .contact-wrapper {
        padding: 0 12px; /* evita que el card se pegue a los bordes */
    }

    .contact-card {
        padding: 22px; /* más compacto */
        max-width: 100%; /* evita deformación */
    }

    .contact-card input,
    .contact-card textarea {
        font-size: 0.92rem;
        padding: 10px 12px;
    }

    #btn_enviar {
        padding: 12px;
        font-size: 0.95rem;
    }	
	
    #contact_section {
        scroll-margin-top: 75px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .info-card {
        min-height: auto;
        padding: 24px 20px;
    }

    .info-card iframe {
        height: 220px;
        margin-top: 15px;
    }

    .qr-wrapper {
        margin-top: 15px;
    }	
	
}





/* ============================
   COLORES PARA DEMO
============================ */


/* ============================
VARIABLES Y RESET
============================ */
:root {
    --color-primario: #0c2454;       /* Azul marino */
    --color-secundario: #1a3a7a;     /* Azul secundario */
    --color-acento: #D4A72C;         /* 🟡 Amarillo mostaza */
    --color-acento-hover: #B88D1F;   /* Mostaza oscuro para hover */
    --color-fondo: #f5f5f7;
    --color-texto: #222222;
    --color-texto-suave: #555555;
    --color-borde-suave: #d2d2d7;
}



/* ============================
BOTONES
============================ */




/* ============================
BOTÓN OUTLINE
============================ */

.btn-outline {
    background: transparent;
    color: var(--color-primario);
    border-radius: 999px;
    padding: 9px 18px;
    border: 1px solid var(--color-acento);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background: var(--color-acento);
    color: #ffffff;
}


/* ============================
HERO
============================ */

.hero-title {
    font-size: 2.4rem;
    color: var(--color-primario);
    line-height: 1.6;
}

.hero-text h1 {
    font-size: 2.2rem;
    color: var(--color-primario);
    margin-bottom: 10px;
}


/* ============================
BADGES
============================ */

.hero-badges .badge {
    background: #fff8df;
    border: 1px solid #ead18a;
    color: var(--color-primario);
    font-weight: 600;
    padding: 8px 14px;
    font-size: 0.78rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-badges .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}


/* ============================
SLIDER HERO
============================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 12px;
    border: 2px solid var(--color-acento);
    overflow: hidden;
}


/* ============================
DETALLES DE SECCIONES
============================ */

.after-testimonials-line {
    width: 70px;
    height: 3px;
    background: var(--color-acento);
    margin: 0 auto 18px auto;
    border-radius: 3px;
}


/* ============================
NOSOTROS
============================ */

.nosotros-linea {
    width: 80px;
    height: 3px;
    background: var(--color-acento);
    margin: 0 auto 16px auto;
    border-radius: 3px;
}


/* ============================
FORMULARIO
============================ */

#btn_enviar {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 6px;
}


/* ============================
COOKIE
============================ */

#cookie_accept {
    background: var(--color-acento);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

#cookie_accept:hover {
    background: var(--color-acento-hover);
}


/* ============================
FOCUS DE LOS CAMPOS
============================ */

.contact-card input:focus,
.contact-card textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-acento);
    box-shadow: 0 0 0 2px rgba(212, 167, 44, 0.15);
}


