/* Variables de colores corporativos */
:root {
    --primary-color: rgb(0, 48, 91);
    --white-color: #ffffff;
}

/* Estilos generales */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Times New Roman', Times, serif;
}

/* Navbar */
.navbar {
    background-color: var(--white-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
}

.bold {
    font-weight: 700 !important;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5ba3 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background-image: url('/images/sala-juntas.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

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

.hero .col-lg-6:last-child {
    position: relative;
}

.hero .decorative-elements {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero .decorative-line {
    width: 80%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Sobre Nosotros Section */
.sobre-nosotros-section {
    padding: 5rem 0;
    background-color: var(--white-color);
    position: relative;
}

.sobre-nosotros-section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 2rem;
    margin-left: 50%;
    transform: translateX(-50%);
}

.sobre-nosotros-section h2::before,
.sobre-nosotros-section h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.sobre-nosotros-section h2::before {
    left: -70px;
}

.sobre-nosotros-section h2::after {
    right: -70px;
}

.sobre-nosotros-section h2 span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.sobre-nosotros-content {
    max-width: 900px;
    margin: 0 auto;
}

.sobre-nosotros-text {
    margin-bottom: 2rem;
}

.sobre-nosotros-text p {
    color: rgb(0, 48, 91);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.sobre-nosotros-highlight {
    background: linear-gradient(135deg, rgba(0, 48, 91, 0.05) 0%, rgba(26, 91, 163, 0.05) 100%);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.sobre-nosotros-highlight p {
    color: rgb(0, 48, 91);
    line-height: 1.8;
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .sobre-nosotros-section {
        padding: 3rem 0;
    }

    .sobre-nosotros-text p,
    .sobre-nosotros-highlight p {
        font-size: 1rem;
    }

    .sobre-nosotros-highlight {
        padding: 1.5rem;
    }
}

/* Quiénes Somos Section */
.quienes-somos-section {
    padding: 5rem 0;
    background-color: var(--white-color);
    position: relative;
}

.quienes-somos-section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 2rem;
    margin-left: 50%;
    transform: translateX(-50%);
}

.quienes-somos-section h2::before,
.quienes-somos-section h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.quienes-somos-section h2::before {
    left: -70px;
}

.quienes-somos-section h2::after {
    right: -70px;
}

.quienes-somos-section h2 span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.socio-card {
    text-align: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.socio-card:hover {
    transform: translateY(-10px);
}

.socio-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.socio-card:hover .socio-image {
    box-shadow: 0 8px 16px rgba(0, 48, 91, 0.2);
    border-width: 4px;
}

.socio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.socio-card:hover .socio-image img {
    transform: scale(1.05);
}

.socio-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.socio-card:hover .socio-name {
    color: #1a5ba3;
}

@media (max-width: 768px) {
    .quienes-somos-section {
        padding: 3rem 0;
    }

    .socio-image {
        width: 150px;
        height: 150px;
    }

    .socio-name {
        font-size: 1.2rem;
    }
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a5ba3;
    border-color: #1a5ba3;
}

/* Secciones con Cards (Valores y Áreas de Especialización) */
.valores-section,
.areas-especializacion-section {
    position: relative;
    padding: 5rem 0;
    background-color: var(--white-color);
}

.valores-section::before,
.areas-especializacion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.valores-section .container,
.areas-especializacion-section .container {
    position: relative;
    z-index: 2;
}

.valores-section h2,
.areas-especializacion-section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 2rem;
    margin-left: 50%;
    transform: translateX(-50%);
}

.areas-especializacion-section h2::before,
.areas-especializacion-section h2::after,
.valores-section h2::before,
.valores-section h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.areas-especializacion-section h2::before,
.valores-section h2::before {
    left: -70px;
}

.areas-especializacion-section h2::after,
.valores-section h2::after {
    right: -70px;
}

.areas-especializacion-section h2 span,
.valores-section h2 span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Cards de Valores y Áreas */
.valores-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.valores-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.valores-card .card-body {
    padding: 2rem;
}

.valores-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.valores-card .card-text {
    color: #333;
    line-height: 1.6;
}

.valores-card i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--white-color) !important;
    color: var(--primary-color);
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 48, 91, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Formulario de contacto */
.form-control {
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 48, 91, 0.25);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        text-align: center;
        padding: 4rem 0;
    }

    .valores-card .card-body {
        padding: 1.5rem;
    }

    .sobre-nosotros-section {
        padding: 3rem 0;
    }

    .sobre-nosotros-section p {
        font-size: 1rem;
    }

    .valores-section,
    .areas-especializacion-section,
    .quienes-somos-section {
        padding: 3rem 0;
    }

    .socio-image {
        width: 150px;
        height: 150px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 1rem;
    }

    .footer-contact {
        text-align: center;
    }

    /* Ajustes adicionales para pantallas muy pequeñas */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card-body {
        padding: 1rem;
    }

    .contacto-info,
    .contacto-form {
        padding: 1rem;
    }

    .socio-image-container {
        padding: 1rem;
    }

    .socio-image-container img {
        width: 100%;
        max-width: 250px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
}

/* Sección de Contacto */
.contacto-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5ba3 100%);
    color: var(--white-color);
    position: relative;
}

.contacto-section h2 {
    color: var(--white-color);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 2rem;
    margin-left: 50%;
    transform: translateX(-50%);
}

.contacto-section h2::before,
.contacto-section h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background-color: var(--white-color);
}

.contacto-section h2::before {
    left: -70px;
}

.contacto-section h2::after {
    right: -70px;
}

.contacto-section h2 span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.contacto-info {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.contacto-info:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.contacto-info h3 {
    color: var(--white-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contacto-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--white-color);
}

.contacto-details p {
    margin-bottom: 1rem;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
}

.contacto-details-basic p {
    margin-bottom: 1rem;
    line-height: 1.8;
    align-items: flex-start;
}

.contacto-details i {
    margin-right: 1rem;
    color: var(--white-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contacto-details a {
    color: var(--white-color);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.contacto-details a:hover {
    opacity: 0.8;
}

.contacto-form {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.contacto-form:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.contacto-form h3 {
    color: var(--white-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contacto-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--white-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contacto-form .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.8rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contacto-form .form-control:focus {
    background-color: var(--white-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.contacto-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contacto-form .btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.contacto-form .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .contacto-section {
        padding: 3rem 0;
    }

    .contacto-info,
    .contacto-form {
        padding: 1.5rem;
    }

    .contacto-info h3,
    .contacto-form h3 {
        font-size: 1.3rem;
    }
}

/* Estilos para las secciones de áreas */
.area-detail-section {
    padding: 5rem 0;
    position: relative;
}

.area-detail-section.bg-primaryblue {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5ba3 100%);
}

.area-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.area-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: currentColor;
}

/* Estilos base para las subsecciones */
.subsection {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Estilos específicos para subsecciones en secciones con fondo azul */
.bg-primaryblue .subsection {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bg-primaryblue .subsection:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Estilos específicos para subsecciones en secciones con fondo blanco */
.bg-white .subsection {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 48, 91, 0.1);
    box-shadow: 0 4px 6px rgba(0, 48, 91, 0.05);
}

.bg-white .subsection:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 12px rgba(0, 48, 91, 0.1);
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: currentColor;
}

.area-list {
    list-style: none;
    padding-left: 0;
}

.area-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.area-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: currentColor;
    font-size: 1.2rem;
    line-height: 1;
}

/* Estilos para la página Quiénes Somos */
.quienes-somos-detail-section {
    padding: 5rem 0;
}

.quienes-somos-detail-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.socio-info {
    padding: 2rem;
}

.socio-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.socio-description {
    font-size: 1rem;
    line-height: 1.4;
}

.socio-description p {
    margin-bottom: 0.8rem;
}

.socio-image-container {
    padding: 2rem;
}

.socio-image-container img {
    width: 312px;  /* Ancho fijo */
    height: 468px; /* Alto fijo */
    object-fit: cover; /* Mantiene la proporción de la imagen */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
    .socio-image-container img {
        width: 250px;  /* Ancho más pequeño en móviles */
        height: 375px; /* Manteniendo la proporción */
    }
}

/* Alternancia de colores */
.bg-primaryblue {
    background-color: var(--primary-color);
}

.bg-white {
    background-color: var(--white-color);
}

/* Estilos para los enlaces en la sección Quiénes Somos de la landing */
.quienes-somos-section a {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.quienes-somos-section a:hover {
    opacity: 0.8;
    color: var(--primary-color) !important;
}

/* Estilos para el botón hamburguesa del navbar */
.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(0, 48, 91)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 48, 91, 0.25);
}

.areas-especializacion-section {
    position: relative;
    padding: 5rem 0;
    background-image: url('/images/areas-especializacion-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.areas-especializacion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.areas-especializacion-section .container {
    position: relative;
    z-index: 2;
}

.areas-especializacion-section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
    display: inline-block;
    padding: 0.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
    margin-left: 50%;
    transform: translateX(-50%);
}

.valores-section {
    position: relative;
    padding: 5rem 0;
    background-image: url('/images/sala-juntas.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.valores-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.valores-section .container {
    position: relative;
    z-index: 2;
}

.valores-section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
    display: inline-block;
    padding: 0.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Estilos para secciones con imágenes de fondo */
.area-detail-section.bg-white {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Derecho Civil */
#civil {
    background-image: url('/images/libreria.jpg');
}

/* Derecho Procesal */
#procesal {
    background-image: url('/images/libros2.jpg');
}

.area-detail-section.bg-white, .quienes-somos-detail-section.bg-white{
    color: rgb(0, 48, 91) !important;
}
/* Overlay blanco semitransparente */
.area-detail-section.bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(224, 224, 224, 0.856);
    z-index: 1;
}

/* Asegurar que el contenido esté por encima del overlay */
.area-detail-section.bg-white .container {
    position: relative;
    z-index: 2;
} 