/* 1. Variables Globales (Paleta de colores y fuentes) */
:root {
    --bg-dark: #000000;
    --text-main: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #eaeaea;
    --font-main: 'Inter', sans-serif;
    --accent-color: #b80223; 
}
/* 2. Reseteo Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.5;
    background-color: var(--white);
    /* Espacio para que el menú fijo no tape el contenido */
    padding-top: 80px; 
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3. Estilos del Encabezado (Navbar) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    max-height: 50px; 
    width: auto;      
    display: block;
    transition: transform 0.3s ease;
}


.logo-img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.btn-login {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid var(--accent-color);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 20px;
}

/* 4. Estilos del Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    color: #cccccc;
    font-size: 15px;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px 15px;
    background-color: transparent;
    border: 1px solid #444;
    color: var(--white);
    font-family: var(--font-main);
}

.newsletter-form .btn-submit {
    padding: 12px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.newsletter-form .btn-submit:hover {
    background-color: #8f021b;
}

/* --- ESTILOS DE LA PÁGINA DE INICIO --- */

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece la imagen para que el texto se lea */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color); 
    padding-bottom: 5px;
    color: var(--accent-color); 
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.4;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
    overflow: hidden; /* Para que la imagen no se salga al hacer zoom */
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.05); /* Zoom sutil al pasar el mouse */
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}
/* --- ESTILOS DE PÁGINAS INTERNAS --- */

.inner-page {
    /* El padding top ya está en el body, pero aseguramos un min-height */
    min-height: calc(100vh - 300px); 
}

/* Cabecera genérica para About, Contact, etc. */
.page-header {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Sección Contacto */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Información de la izquierda */
.contact-info h2, .contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--accent-color); 
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
}

/* Formulario de la derecha */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, 
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #999;
}

.btn-submit-form {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    border-radius: 4px;
}

.btn-submit-form:hover {
    background-color: #8f021b; 
}

/* Estilos para Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.team-card {
    text-align: center;
}
.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.team-info h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 5px;
}
.team-info .role {
    display: block;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.team-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- ESTILOS ESPECÍFICOS DE LA PÁGINA ABOUT US --- */

/* Hero de About Us (Edificio blanco de fondo) */
.about-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80'); /* Cambiar por imagen de edificio si lo deseas */
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left !important;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-main);
    max-width: 1000px;
    margin: 0 auto;
}

.regular-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Secciones divididas (Imagen / Texto) */
.split-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.split-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Invertir el orden (para que la imagen vaya a la izquierda en la última sección) */
.split-container.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px; /* Un pequeño borde redondeado o puedes quitarlo para hacerlo más corporativo-rígido */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra suave para separar del fondo */
}

/* Ajustes Responsive para la página de About */
@media (max-width: 768px) {
    .lead-text {
        font-size: 1.15rem;
    }
    
    .split-container, 
    .split-container.reverse {
        flex-direction: column;
        gap: 40px;
    }
    
    .text-left {
        text-align: center !important;
    }
}

/* --- ESTILOS DE LA PÁGINA DE SERVICIOS --- */

/* Cuadrícula de "What We Do" */
.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.wwd-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wwd-image {
    width: 100%;
    height: 300px;
}

.wwd-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wwd-content {
    padding: 30px;
}

.wwd-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 600;
}

.wwd-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* --- ESTILOS DE LAS PREGUNTAS FRECUENTES (FAQ) --- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

/* El título de la pregunta */
.faq-item summary {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Oculta la flecha por defecto en navegadores modernos */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: background-color 0.2s;
}

/* Recrear la flechita con CSS para que se vea más elegante */
.faq-item summary::-webkit-details-marker {
    display: none; /* Oculta la flecha en Safari/Chrome antiguos */
}

.faq-item summary::after {
    content: '\002B'; /* Símbolo de "más" (+) */
    font-size: 1.5rem;
    color: var(--text-light);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '\2212'; /* Símbolo de "menos" (-) al abrir */
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background-color: #f1f1f1;
}

/* El contenido oculto de la respuesta */
.faq-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 20px;
}

.faq-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

/* --- ESTILOS DE LA PÁGINA OUR TEAM --- */

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.commitment-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.commitment-card:hover {
    transform: translateY(-5px);
}

.commitment-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color); /* Usando el azul oscuro si lo tienes definido, o var(--text-main) */
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
}

.commitment-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- ESTILOS ADICIONALES PARA LA PÁGINA DE INICIO COMPLETA --- */

/* Botón con contorno (Learn More) */
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Botón sólido (Make Things Possible) */
.btn-solid {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-solid:hover {
    background-color: #8f021b; /* Tono más oscuro al pasar el mouse */
}

/* Ajustes para la cuadrícula de servicios principal para acomodar las 7 tarjetas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Responsivo para la cuadrícula de compromisos */
@media (max-width: 900px) {
    .commitment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .commitment-grid {
        grid-template-columns: 1fr;
    }
}
/* Responsivo para Servicios */
@media (max-width: 768px) {
    .what-we-do-grid {
        grid-template-columns: 1fr; /* Una sola columna en celulares */
    }
    
    .wwd-image {
        height: 250px;
    }
}

/* Responsive para la página de contacto */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
}


/* Responsividad Básica para el menú */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar en móvil por ahora */
    }
    .mobile-menu-btn {
        display: block;
    }
}