* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html, body {
    min-height: 100%;
}

html {
    min-height: 100%;
    background-image: url("fondo.jpeg");
    background-size: cover;
    background-position: center 15%; /* ajusta si quieres ver más palmas */
    background-repeat: no-repeat;
}

body {
    background: transparent;
}


/* El contenido principal empuja el footer */
main {
    margin-bottom: 40px; /* ajusta 20–60px a tu gusto */
}

/* ===== HEADER ===== */
.header {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 20px 40px 15px;
    /*border-bottom: 1px solid rgba(0,0,0,0.15);
    backdrop-filter: blur(4px); /* opcional pero elegante */
}

.header-top,
.contact-bar {
    max-width: 1200px;
    margin: 0 auto;
}

/* Contenedor superior */
.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* LOGO */
.logo {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto;
	margin: -35px auto 0; /* 👈 sube el logo */
}

/* SERVICIOS */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-column: 1 / -1;

    gap: 18px;
    font-weight: bold;
    font-size: 20px;
    color: #e60000;
    text-align: center;
    margin-top: -39px;
}

.services p {
    color: #ffffff;                 /* blanco */
 /* background: rgba(31, 58, 95, .85); /* azul oscuro marca */
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
	font-size: 30px;
	
    
}


/*.services p {
    background: #f4f6f8;
    padding: 6px 12px;
    border-radius: 20px;
}*/

/* TITLES */
.main-title,
.section-title {
    margin: 1px 0 25px;
    color: #ffffff;
    font-size: 28px;
	letter-spacing: 1px;
    font-weight: 800;
    text-align: center;
	
	
}

.title-bg {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 14px;

    background: rgba(173, 216, 230, 0.65);

    color: #0d3b66;       /* azul profundo */
    font-weight: 600;     /* 👈 más delgada */
    letter-spacing: 0.6px;
    text-transform: uppercase;

    
}

.category-slogan {	
    display: inline-block;          /* 👈 solo el ancho del texto */
    margin: 6px auto 14px;
    padding: 6px 16px;
	text-align: center; /* 👈 CLAVE */

    background: rgba(31, 58, 95, 0.85); /* azul marca */
    color: #ffffff;

    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;

    border-radius: 20px;
}

.category-section {
    max-width: 1200px;      /* controla el ancho */
    margin: 0 auto 40px;    /* centra todo el bloque */
    text-align: center;    /* 👈 CLAVE ABSOLUTA */
}


.category-section .gallery {
    max-width: 900px;          /* 👈 limita el ancho */
    margin: 0 auto;            /* 👈 centra la galería */
    padding: 18px 16px;
	

    background: rgba(0, 0, 0, 0.08);
    border-radius: 14px;
}

.section-title .title-bg {
    display: inline-block;
    margin-top: 20px;   /* 👈 aire arriba */
}


.promo-text {
    margin-top: 10px;
    text-align: center;
}

.promo-text span {
    display: inline-block;

    font-size: 25px;
    font-weight: 700;
    color: #c40000;
    letter-spacing: 0.6px;
    text-transform: uppercase;

    text-shadow:
        1px 1px 0 #8a0000,
        2px 2px 3px rgba(0,0,0,0.22);
}


/* GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 200px); /* 👈 tamaño REAL */
    justify-content: center;
    gap: 16px;
    padding: 0px;
    margin: 0 auto;
	
	
}

.gallery img {
    width: 100%;
 /* aspect-ratio: 1 / 1;   /* 👈 cuadradas y limpias */
    object-fit: cover;
    border-radius: 6px;
}

.footer {
    position: relative;   /* 👈 ya NO es estático */
    width: 100%;
    margin-top: 50px;
    padding: 20px;
	
	background: #1f3a5f;   /* azul elegante */
    color: #ffffff;
    border-top: none;
}


.footer-actions {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* WhatsApp */
.whatsapp-btn-footer {
   /* background: #25d366; */
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Correo */
.email-btn-footer {
   /* background: transparent; */
   color: #ffffff;
   /* border: 2px solid #4A4A4A;*/
    padding: 12px 22px;
    border-radius: 28px;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.email {
    font-size: 22px;
    color: #ff7a00;
    font-weight: bold;
    margin-bottom: 20px;
}

.phones {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.phones span {
    font-size: 48px;
    color: #ff00b3;
    font-weight: 900;
}


/* móviles chicos */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}


.gallery-item {
    display: flex;
    justify-content: center;
}

/* alineación dentro de la celda */
.pos-left {
    justify-content: flex-start;
}
.pos-center {
    justify-content: center;
}
.pos-right {
    justify-content: flex-end;
}

/* ===== CONTACTOS HEADER ===== */
.contact-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #1f3a5f; /* azul oscuro */
    padding: 0px;
}

.contact-bar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
}

.contact-bar a:hover {
    text-decoration: underline;
}





@media (max-width: 768px) {
    .contact-bar {
        /*flex-direction: column;*/
        gap: 8px;
        font-size: 16px;
    }
}

/* BARRA DE ACCIONES */
.contact-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* BOTÓN WHATSAPP (ya tienes, pero reforzamos) */
.whatsapp-btn-header {
    background: #25d366;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
	justify-self: start;
}

/* Quitar línea roja y estilos de enlace en WhatsApp */
.whatsapp-circle,
.whatsapp-circle:visited,
.whatsapp-circle:hover,
.whatsapp-circle:active,
.whatsapp-circle:focus {
    text-decoration: none !important;
    outline: none;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}


/* BOTÓN WHATSAPP CONTACT BAR */
.whatsapp-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;

    background-color: #25D366;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    border: none;
    outline: none;

    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* Tamaño real del ícono */
.whatsapp-circle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Quitar línea roja / focus raro */
.whatsapp-circle:focus,
.whatsapp-circle:active {
    outline: none;
}

.whatsapp-circle:focus-visible {
    box-shadow: 0 0 0 3px rgba(37,211,102,0.45);
}



@media (max-width: 768px) {
    .whatsapp-btn-header {
        font-size: 10px;
        padding: 10px 18px;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;              /* ← OCULTO AL CARGAR */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.lightbox-img {
    cursor: zoom-in;
}



@media (max-width: 768px) {

    /* SERVICES más grandes en móvil */
    .services {
        font-size: 17px;
        gap: 11px;
    }

    .services p {
        line-height: 0.8;
    }

    /* TELÉFONOS grandes y claros */
    .contact-bar {
        font-size: 19px;
    }

    .contact-bar a {
        font-weight: bold;
    }
}

@media (max-width: 768px) {
    .gallery {
        gap: 6px;
        padding: 6px;
    }

    .gallery img {
        aspect-ratio: 4 / 5; /* un poco más vertical, elegante */
    }
}

@media (max-width: 768px) {

    .section-title {
        font-size: 18px;     /* antes 22–28 */
        margin: 20px 0 15px; /* menos espacio vertical */
    }
}

@media (max-width: 768px) {

    .footer-actions {
        gap: 0px;              /* menos separación */
    }

    .whatsapp-btn-footer,
    .email-btn-footer {
        padding: 8px 14px;      /* botones más pequeños */
        font-size: 14px;        /* texto más chico */
        border-radius: 22px;
    }
}

@media (max-width: 768px) {

    .logo {
        margin-bottom: -26px; /* 👈 separa logo de servicios */
    }

    .services {
        margin-top: 0;       /* evita que se acerque demasiado */
    }
}

@media (max-width: 768px) {

    /* Separar servicios de contactos */
    .services {
        margin-bottom: -5px; /* espacio hacia contactos */
    }

    .contact-bar {
        margin-top: 14px;    /* espacio desde servicios */
    }
}

@media (max-width: 768px) {
    .services p {
        text-shadow:
            1px 1px 0 #b30000,
            2px 2px 3px rgba(0,0,0,0.2);
    }
}

@media (max-width: 768px) {
    .section-title {
        text-shadow:
            1px 1px 2px rgba(0,0,0,0.18);
    }
}

@media (max-width: 768px) {
    .whatsapp-circle {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .promo-text span {
        font-size: 13px;
        line-height: 1.3;
    }
}


.slogan-whatsapp a {
    background: linear-gradient(180deg, #1fa855, #178f48);
    color: #ffffff;
    font-weight: 600;      /* antes 900 */
    letter-spacing: 0.6px; /* más natural */
    font-size: 15px;
    padding: 5px 8px;
    border-radius: 35px;
    text-transform: uppercase;
	 margin: 0px 0 15px;  /* ↑ arriba | ↓ abajo */
	 text-align: center;
	 text-decoration: none;   /* 👈 quita la raya */

    box-shadow:
        0 6px 14px rgba(0,0,0,0.35);

    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.slogan-whatsapp a {
    transition: 
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.slogan-whatsapp a:hover {
    background: linear-gradient(180deg, #23b861, #1fa855);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}




/*    */

@media (max-width: 768px) {

    /* Ocultar correo del header */
    .contact-bar a[href^="mailto"] {
        display: none !important;
    }

    /* Ocultar botón WhatsApp del footer */
    .whatsapp-btn-footer {
        display: none !important;
    }

    /* Mostrar solo "COTIZACIÓN SIN COSTO" en services */
    .services p {
        font-size: 0 !important;
        margin-bottom: 10px;
    }

    .services p::after {
        content: "COTIZACIÓN SIN COSTO";
        display: block;
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 1px;
        color: #ffffff;
        text-align: center;
        text-transform: uppercase;
    }

    /* Teléfonos en una sola fila */
    .phones {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 18px;
        flex-wrap: nowrap;
    }

    .phones span {
        font-size: 16px;
        font-weight: 700;
        color: #ffb3e6;
        white-space: nowrap;
    }
}

/*  ------  */

/* ===== DESKTOP (por defecto) ===== */
/* Ocultar botón "Solicitar asesoría" en escritorio */
.category-slogan .cta-whatsapp {
    display: none;
}

/* ===== MÓVIL ===== */
@media (max-width: 768px) {

    /* Ocultar texto del slogan en móvil */
    .category-slogan .slogan-text {
        display: none !important;
    }

    /* Contenedor centrado */
    .category-slogan {
        display: flex;
        justify-content: center;
        background: none;
        padding: 0;
        margin: 14px 0 18px;
    }

    /* Mostrar botón SOLO en móvil */
    .category-slogan .cta-whatsapp {
        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 100%;
        max-width: 320px;
        text-align: center;

        background: #1f3a5f;
        color: #ffffff;

        padding: 14px 20px;
        border-radius: 32px;

        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-decoration: none;

        box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    }

    .category-slogan .cta-whatsapp:active {
        transform: scale(0.97);
    }
}

/* ===== BARRA STICKY SCROLL ===== */
.sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 10px 18px;
    background: rgba(31, 58, 95, 0.49);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);

    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

/* CUANDO SE ACTIVA */
.sticky-bar.active {
    transform: translateY(0);
}

/* Logo pequeño */
.sticky-logo {
    height: 88px;
    margin: -20px auto;
    grid-column: 2;
}

/* Botón WhatsApp */
.sticky-whatsapp {
    grid-column: 3;
    justify-self: end;

    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;

    font-size: 20px;
    font-weight: 700;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {

    .sticky-bar {
        padding: 8px 12px;
    }

    .sticky-logo {
        height: 32px;
    }

    .sticky-whatsapp {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 24px;
    }
}

@media (max-width: 768px) {

    .footer a[href^="mailto"] {
        display: inline-flex !important;
        align-items: center;
    }

    .footer .email {
        font-size: 16px;
        color: #ff7a00;
        font-weight: 700;
        margin-bottom: 0;
    }
}
