/* Variables CSS para consistencia */
:root {
    --primary-color: #f7931e; /* Naranja aproximado del botón */
    --text-color: #333;
    --light-bg: #f5f5f5;
    --dark-bg: #222;
    --font-family: sans-serif;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
}

/* BOTONES */
.btn-primary, .btn-secondary {
    padding: 10px 25px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
}
.logo img {
    height: 80px; /* Ajusta al tamaño de tu logo */
    width: auto;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-contact {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

/* ESTRUCTURA GENERAL */
.section {
    padding: 60px 5%;
    text-align: center;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

/* 1. HEADER / BANNER */
.hero-banner {
    background-image: url('placeholder_banner.jpg'); /* Reemplazar con imagen real */
    background-size: cover;
    background-position: center;
    color: white;
    height: 70vh; /* Altura de la vista */
    display: flex;
    flex-direction: column;
}

.navbar {
    position: fixed;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.4); /* Fondo semi-transparente para legibilidad */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar nav a {
    color: black;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background-image: url('assets/imgs/hero.webp');
}

.hero-content h1 {
    font-size: 3em;
    max-width: 800px;
    margin-bottom: 20px;
    /* sombra a las letras */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* 2. NUESTROS SERVICIOS */
/* --- NUEVOS ESTILOS PARA LA SECCIÓN DE SERVICIOS --- */

.services-grid {
    display: grid;
    /* La cuadrícula es 2x2. Los 'large-card' ahora se usan para aplicar estilos específicos de imagen. */
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    text-align: left;
}

.service-card {
    /* Estilos generales de la tarjeta */
    background-color: #fff;
    border-radius: 12px; /* Esquinas redondeadas como en la imagen */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 0;
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden; /* Importante para el radio de borde */
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 250px;
}

.service-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.large-card {
    min-height: 350px; /* Las tarjetas más grandes tienen más espacio para la imagen */
}

/* Contenido de la tarjeta (Texto y enlace) */
.card-content {
    padding: 30px;
    z-index: 10; /* Asegura que el texto esté sobre la imagen */
    position: relative;
    flex-grow: 1;
}

.icon-title-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.icon-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: #fff;
    flex-shrink: 0; /* Evita que el icono se encoja */
}

.icon-placeholder img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.8em;
    margin: 0;
    line-height: 1.1;
}

.card-description {
    font-size: 0.95em;
    color: #555;
    margin-top: 5px;
}

/* Enlace "Learn more" (como en la imagen) */
.learn-more {
    color: #c93e3e; /* Rojo/Marrón de la imagen */
    font-weight: bold;
    display: flex;
    align-items: center;
    position: absolute; /* Posicionamiento relativo al .card-content */
    bottom: 30px;
    left: 30px;
}

.learn-more i {
    font-size: 0.8em;
    margin-left: 5px;
}

/* Estilos de Iconos Específicos */
.janitorial-icon { background-color: #a0d4c5; color: #1e5a48; } /* Verde menta */
.maintenance-icon { background-color: #f7b494; color: #a54622; } /* Salmón claro */
.concierge-icon { background-color: #c9c5e5; color: #4b467a; } /* Lila */
.security-icon { background-color: #c9d5e0; color: #3e5870; } /* Azul grisáceo */


/* Contenedor de la Imagen (Se posiciona dentro de la tarjeta) */
.card-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%; /* Ocupa la mitad derecha de la tarjeta */
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 5;
    border-radius: 0 12px 12px 0;
}

/* Imágenes de Fondo Específicas */
.janitorial-card .card-image {
    background-image: url('placeholder_janitorial_woman.jpg'); /* Reemplazar con imagen real */
    height: 90%; /* Ajustar la altura para que la imagen 'suba' desde el borde */
    background-position: right bottom;
}

.maintenance-card .card-image {
    background-image: url('placeholder_maintenance_man.jpg'); /* Ejemplo */
    height: 90%;
    background-position: right bottom;
}

.concierge-card .card-image {
    background-image: url('placeholder_concierge_bell.jpg'); /* Ejemplo */
    height: 100%;
    width: 60%; /* Ocupa más para tarjetas pequeñas */
}

.security-card .card-image {
    background-image: url('placeholder_security_guard.jpg'); /* Ejemplo */
    height: 100%;
    width: 60%;
}

/* 3. POR QUÉ PLANNED? */
.why-planned .description {
    max-width: 700px;
    margin: 20px auto 40px;
    text-align: justify;
}

/* =========================================
   NUEVA GALERÍA ESTRUCTURADA (Sección About)
   ========================================= */

.gallery-structured {
    display: grid;
    /* Creamos una cuadrícula de 3 columnas iguales */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; /* Espacio entre las imágenes */
    margin-top: 3.5rem;
}

/* Estilos generales para todos los ítems de la galería */
.gallery-item {
    border-radius: 16px; /* Bordes redondeados modernos */
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px); /* Un ligero efecto al pasar el mouse */
}

/* Asegura que las imágenes cubran todo el espacio sin deformarse */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Jerarquía y Posicionamiento --- */

/* 1. Imagen Principal Destacada */
.main-feature {
    /* Ocupa 2 de las 3 columnas */
    grid-column: span 2;
    /* Altura fija para darle prominencia vertical */
    height: 480px; 
}

/* 2. Imagen Sub-destacada */
.sub-feature {
    /* Ocupa la 1 columna restante */
    grid-column: span 1;
    /* Misma altura que la principal para alinear */
    height: 480px;
}

/* 3. Imágenes Estándar (fila inferior) */
.standard-img {
    /* Ocupan 1 columna cada una automáticamente */
    grid-column: span 1;
    /* Altura más pequeña */
    height: 280px;
}


/* --- Responsividad para la Galería --- */

/* En tablets y pantallas medianas (menos de 992px) */
@media (max-width: 992px) {
    .gallery-structured {
        /* Cambiamos a 2 columnas */
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* La principal ahora ocupa todo el ancho */
    .main-feature {
        grid-column: span 2;
        height: 400px;
    }

    /* La sub-destacada también ocupa todo el ancho debajo */
    .sub-feature {
        grid-column: span 2;
        height: 350px;
    }
    
    /* Las estándar se acomodan en las 2 columnas */
    .standard-img {
        height: 250px;
    }
    
    /* Hacemos que la primera imagen estándar sea ancha para llenar el hueco impar */
    .standard-img:nth-child(3) {
         grid-column: span 2;
    }
}

/* En móviles (menos de 600px) */
@media (max-width: 600px) {
    .gallery-structured {
        /* Una sola columna, todo apilado */
        grid-template-columns: 1fr;
    }

    .main-feature, 
    .sub-feature, 
    .standard-img,
    .standard-img:nth-child(3) {
        grid-column: auto; /* Reseteamos las columnas */
        height: 300px; /* Altura uniforme para móvil */
    }
}


/* 4. ÁREA DE SERVICIO */
.service-area {
    background-color: white;
}
.map-placeholder {
    margin: 30px auto;
    width: 100%;
    max-width: 800px;
    height: 400px;
    background-color: var(--light-bg); /* Simula el mapa */
    border: 1px solid #ddd;
}

/* 5. BANNER INFERIOR */
.bottom-banner {
    background-color: #2a2a2a; /* Color oscuro similar al fondo de la imagen */
    color: white;
    padding: 40px 5%;
    position: relative;
    overflow: hidden;
    height: 250px; /* Ajustar altura para la imagen de fondo */
    
    /* Simulación de la imagen de fondo con degradado/capa */
    background-image: linear-gradient(to right, rgba(42, 42, 42, 0.8), rgba(42, 42, 42, 0.1)), url('placeholder_acquisition.jpg');
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
}

.bottom-banner .banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.bottom-banner .text-content p {
    font-size: 1.5em;
    font-weight: 300;
}

/* 6. TECNOLOGÍA */
.technology {
    background-color: var(--light-bg);
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.tech-card {
    text-align: center;
    width: 250px;
}

.icon-placeholder {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 1px solid #eee;
    /* Simulación de la imagen pequeña */
    background-image: url('placeholder_tech_icon.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* FOOTER */
.main-footer {
    background-color: #2a2a2a; /* Fondo oscuro */
    color: #ccc; /* Texto gris claro */
    padding: 40px 5%;
    font-size: 0.9em;
}

/* 1. SECCIÓN SUPERIOR: LOGO Y REDES */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    height: 60px; /* Ajusta al tamaño de tu logo */
}

.footer-logo p {
    font-size: 0.75em;
    color: #888;
    margin-top: 5px;
}

/* Contenedor de las tarjetas de redes sociales */
.social-links-container {
    display: flex;
    gap: 15px;
}

.social-card {
    background-color: #3b3b3b;
    border-radius: 4px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
    width: 200px; /* Ancho fijo para las tarjetas */
}

.social-card:hover {
    background-color: #4c4c4c;
}

.social-card .icon-box i {
    font-size: 1.5em;
    margin-right: 10px;
}

.social-card .label {
    display: block;
    font-size: 0.7em;
    color: #999;
}

.social-card .handle {
    display: block;
    font-weight: bold;
    color: #fff;
    font-size: 0.9em;
}

.social-card .fa-chevron-right {
    margin-left: auto;
    color: #999;
}

/* 2. DIVISOR */
.footer-divider {
    border: 0;
    border-top: 1px solid #444;
    margin: 20px 0;
    max-width: 1200px;
    margin: 20px auto;
}

/* 3. SECCIÓN INFERIOR: ENLACES Y CONTACTO */
.footer-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr; /* 4 columnas para Contacto, Áreas (x2) y Legal */
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
    text-align: left;
}

.footer-column {
    padding-right: 20px;
}

.column-title {
    display: block;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.footer-column p, .footer-column a, .footer-column li {
    line-height: 1.8;
    color: #ccc;
    text-decoration: none;
}

.footer-column ul {
    list-style: none;
}

.footer-column a:hover {
    color: var(--primary-color); /* Usando el color naranja definido antes */
}

/* Contacto - Estilo específico */
.contact-info a {
    display: block;
    margin-top: 10px;
}

/* 4. COPYRIGHT */
.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.8em;
    color: #888;
}

/* =========================================
   SECCIÓN DE CONTACTO
   ========================================= */

.contact-section {
    background-color: #f9f9f9; /* Un fondo ligeramente diferente para separar */
    padding: 4rem 5%;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Lado Izquierdo: Información */
.contact-info-side {
    flex: 1;
    min-width: 300px;
    background-color: #222; /* Fondo oscuro elegante */
    color: #ffffff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-side h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-info-side p {
    color: #ccc;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    width: 100%;
}

.info-item .info-item-content{
    width: calc(100% - 2.2rem);
    text-align: left;
}

.info-item i {
    color: #e60023; /* Rojo de la marca */
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 5px;
}

.info-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.info-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Lado Derecho: Formulario */
.contact-form-side {
    flex: 1.5;
    min-width: 300px;
    padding: 3rem;
    background-color: #ffffff;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f8f8;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #e60023;
    background-color: #fff;
}

.btn-primary.full-width {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 1rem;
}

/* Responsividad para Contacto */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info-side,
    .contact-form-side {
        padding: 2rem;
    }
}


/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   Copia y pega esto al FINAL de tu styles.css
   ========================================= */

/* Tablets y Laptops Pequeñas (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5em; /* Reducir titulo principal */
    }

    /* Ajustar Footer para tablets */
    .footer-bottom-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en vez de 4 */
    }
}

/* Tablets Verticales y Móviles Grandes (max-width: 768px) */
@media (max-width: 768px) {
    
    /* 1. OCULTAR MENÚ DE NAVEGACIÓN (Lo que pediste) */
    .navbar nav {
        display: none; /* Desaparece los enlaces */
    }

    /* 2. AJUSTAR LA BARRA SUPERIOR */
    .navbar {
        flex-direction: row; /* Mantiene el logo en horizontal */
        justify-content: center; /* Centra el logo */
        padding: 15px 5%;
        position: absolute; /* Lo deja flotando sobre la imagen */
        top: 0;
    }

    /* Ajuste opcional para el logo en móvil */
    .logo img {
        height: 50px; /* Un tamaño adecuado para móvil */
        width: auto;
    }

    /* 3. SERVICIOS (Tu arreglo anterior) */
    .services-grid {
        grid-template-columns: 1fr; 
        padding: 0 10px; 
    }

    .service-card {
        min-height: auto; 
    }
    
    .card-content {
        padding-bottom: 60px; 
    }

    /* 4. HEADER / HERO TEXTO */
    .hero-banner {
        height: 100%;
    }
    .hero-content .btn-primary{
        margin-bottom: 20px;
    }
    .hero-content h1 {
        font-size: 2em;
        margin-top: 100px; /* Un poco de espacio extra ya que el logo está arriba */
    }
    
    /* 5. TECNOLOGÍA */
    .tech-grid {
        flex-direction: column; 
        align-items: center;
    }

    /* 6. FOOTER */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .social-links-container {
        flex-direction: column;
        width: 100%;
    }

    .social-card {
        width: 100%; 
        justify-content: space-between;
    }

    .footer-bottom-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    /* 7. BANNER INFERIOR */
    .bottom-banner .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .bottom-banner {
        height: auto;
        padding: 60px 5%;
    }
    
    /* Ajuste del formulario de contacto */
    .contact-container {
        flex-direction: column;
    }
    .contact-info-side, .contact-form-side {
        padding: 2rem;
    }
}

/* Móviles Pequeños (max-width: 480px) */
@media (max-width: 480px) {
    .section h2 {
        font-size: 2em;
    }
    
    .service-card h3 {
        font-size: 1.5em;
    }
    
    /* Ajuste del formulario de contacto en pantallas muy pequeñas */
    .contact-info-side, .contact-form-side {
        padding: 1.5rem;
    }
}