/* ======== PALETA DE COLORES - TEMA CLARO ======== */
:root {
    /* Mapeo de la nueva paleta: Blanco, Gris, Negro */
    --color-bg-primary: #FFFFFF;           /* Fondo principal blanco */
    --color-bg-secondary: #f8f8f8;       /* Fondo secundario gris muy claro */
    --color-text-primary: #212529;         /* Texto principal - Negro carbón */
    --color-text-secondary: #6c757d;       /* Texto secundario - Gris oscuro */
    --color-accent: #000000;               /* Acento principal - Negro */
    --color-accent-hover: #333333;         /* Hover del acento - Gris oscuro */
    --color-border: #dee2e6;             /* Bordes suaves */ 

    /* Fuentes (se mantienen) */
    --font-headings: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary); /* Texto principal oscuro */
    line-height: 1.7;
    background-color: var(--color-bg-primary); /* Fondo principal blanco */
}

/* ======== TIPOGRAFÍA Y ESTILOS GENERALES ======== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--color-text-primary); /* Color de texto oscuro */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent); /* Línea de acento negra */
    margin: 15px auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary); /* Subtítulo en gris medio */
    max-width: 600px;
    margin: 0 auto;
}

/* Invertir colores para que coincidan con el tema claro */
.section-title-light, .section-subtitle-light {
    color: var(--color-text-primary);
}
.section-title-light::after {
    background: var(--color-accent);
}

.btn-primary {
    background-color: var(--color-accent); /* Botón negro */
    border-color: var(--color-accent);
    font-family: var(--font-body);
    font-weight: 500;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: #FFFFFF; /* Texto del botón blanco para contraste */
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-accent-hover); /* Hover gris oscuro */
    border-color: var(--color-accent-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ======== HEADER ======== */
.header {
    background: rgba(255, 255, 255, 0.9); /* Fondo blanco translúcido */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); /* Sombra suave para fondo claro */
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary) !important;
}

/* Altura de la barra de navegación */
.header .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link {
    color: var(--color-text-primary) !important; /* Texto de enlaces oscuro */
    /* ...otras propiedades... */
}

.nav-link::after {
    /* ...otras propiedades... */
    background-color: var(--color-accent); /* Acento negro en hover */
    /* ...otras propiedades... */
}
.nav-link:hover::after {
    transform: scaleX(1);
}

/* ======== HERO SECTION ======== */
.hero-section {
    position: relative;
    overflow: hidden;
    color: white; /* Cambiar el color del texto a blanco para que contraste con el overlay oscuro */
    min-height: 90vh;
    padding-top: 100px;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-40%); /* Ajustado para mover el video hacia abajo */
    object-fit: cover; /* Corregido de background-size */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay oscuro semitransparente */
    z-index: -1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    font-weight: 600;
    color: white; /* Texto blanco */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para mejorar legibilidad */
}

.hero-section .lead {


    font-size: 1.4rem;
    max-width: 400px;
    margin-top: 20px;     /* Mantenemos el margen superior */
    margin-left: auto;   /* Margen izquierdo automático empuja el elemento a la derecha */
    margin-right: 0; 
     font-family: var(--font-headings);     
    font-weight: 500;
    color: white; /* Texto blanco */

}

/* ======== SERVICIOS SECTION ======== */
.service-card {
    background: var(--color-bg-primary); /* Fondo blanco */
    border: 1px solid var(--color-border); /* Borde gris claro */
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); /* Sombra muy sutil */
}

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

.service-card .service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-primary);
}

.service-card-mediation {
    background-color: #EAF0F4;
}


/* ======== QUIÉNES SOMOS SECTION ======== */
#quienes-somos {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
}

#quienes-somos ul {
    list-style: none;
    padding-left: 0;
}

#quienes-somos ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

#quienes-somos ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent); /* Checkmark en color acento (negro) */
    font-weight: bold;
    font-size: 1.2rem;
}

/* ======== TESTIMONIOS SECTION ======== */
#testimonios {
    background-color: var(--color-bg-secondary); /* Fondo gris claro */
}

.testimonial-card {
    background: var(--color-bg-primary); /* Tarjeta blanca */
    padding: 30px;
    border-left: 4px solid var(--color-accent); /* Acento negro */
    border-radius: 5px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.testimonial-card blockquote {
    margin-bottom: 15px;
    font-style: italic;
    color: var(--color-text-secondary);
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ======== CONTACTO SECTION ======== */
#contacto {
        background-color: #36454F; /* Azul Petróleo */
    color: #FFFFFF; /* Cambiamos el color de texto base a blanco */
}

/* Títulos: Aseguramos que el título y subtítulo de esta sección sean blancos */
#contacto .section-title-light,
#contacto .section-subtitle-light {
    color: #FFFFFF;
}
#contacto .section-title-light::after {
    background: #FFFFFF; /* Línea de acento blanca */
}

/* Formulario: Invertimos los colores para el fondo oscuro */
#contacto .form-control {
    background-color: rgba(255, 255, 255, 0.1); /* Fondo de input translúcido */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde claro */
    color: #FFFFFF; /* Texto del input blanco */
}

#contacto .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6); /* Color del placeholder claro */
}

#contacto .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    box-shadow: none;
    border-color: #FFFFFF; /* Borde blanco al enfocar */
}


/* ======== FOOTER ======== */
.footer {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.footer p {
    margin-bottom: 0.5rem;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 991.98px) {
    .nav-link::after {
        display: none;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .lead {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    #quienes-somos .text-center {
        margin-top: 30px;
    }
}

/* Opción con !important como último recurso */
.header .TituloPagina {
    color: var(--color-accent);
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: bold !important;       /* Forzar negrita */
    text-decoration: none !important; /* Forzar sin subrayado */
}


.p {
     text-align: justify;
}

.li {
     text-align: justify;
}

/* ======== TESTIMONIOS CAROUSEL ======== */
#testimonialCarousel .carousel-inner {
    padding: 1em;
}

#testimonialCarousel .carousel-item {
    text-align: center;
    padding: 0 15%;
}

#testimonialCarousel .testimonial-card {
    margin: 0 auto;
    max-width: 800px;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 5%;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    background-color: var(--color-accent);
    border-radius: 50%;
    padding: 1.5rem;
}