@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500&family=Gentium+Basic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

header {
    max-width: 100%;
    width: 100%;
    background-color: rgba(75, 17, 17, 0.95);
    color: ivory;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.nav-desktop {
    flex: 1;
}

header img.logo {
    width: 125px;
    display: block;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(75, 17, 17, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header.scrolled img.logo {
    width: 60px;
}

.menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

.contenedor {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    list-style: none;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.menu li {
    position: relative;
}

.menu li > a {
    padding: 15px 25px;
    display: block;
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu > li > a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.submenu {
    position: absolute;
    background-color: rgba(75, 17, 17, 0.95);
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.submenu li a {
    padding: 12px 25px;
    display: block;
    color: #fff;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffd700;
}

.menu li:hover .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.titulo {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(../imagenes/inicio_fondo.png);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.titulo2 {
    color: #ffffff;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.titulo2 h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.titulo2 h3 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 50px auto;
    padding: 0 20px;
}

/* Estilos para cards y elementos interactivos */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Botones estilizados */
.btn {
    padding: 12px 25px;
    border-radius: 25px;
    background-color: rgb(75, 17, 17);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.btn:hover {
    background-color: #ffd700;
    color: rgb(75, 17, 17);
    transform: translateY(-2px);
}

/* Animaciones para elementos al hacer scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.servicios {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: rgb(75, 17, 17);
    font-size: 2.5rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.card-number {
    font-size: 2.5rem;
    color: rgb(75, 17, 17);
    margin-bottom: 20px;
    font-weight: 600;
}

.card h3 {
    color: #333;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    margin-bottom: 20px;
}

.btn-link {
    color: rgb(75, 17, 17);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #ffd700;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(75, 17, 17, 0.97), rgba(75, 17, 17, 0.97)),
                url(../imagenes/footer.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #f8f9fa;
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0% 100%);
}

.cta-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.cta-buttons .btn {
    min-width: 200px;
    justify-content: center;
    padding: 15px 30px;
}

.cta-buttons .btn-primary {
    background-color: #ffd700;
    color: rgb(75, 17, 17);
    font-weight: 600;
}

.cta-buttons .btn-primary:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #ffd700;
}

.cta-buttons .btn-secondary:hover {
    background-color: #ffd700;
    color: rgb(75, 17, 17);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: #1a1a1a;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ffd700;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-section i {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.social-link:hover {
    background-color: #ffd700;
    color: #1a1a1a;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    opacity: 0.7;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffd700;
}

/* Áreas de Práctica Page Styles */
.areas-hero {
    background: linear-gradient(rgba(75, 17, 17, 0.85), rgba(75, 17, 17, 0.85)), url(../imagenes/inicio_fondo.png);
    background-size: cover;
    background-position: center;
    padding: 180px 0 80px; /* Aumenté el padding superior de 150px a 180px */
    text-align: center;
    color: #fff;
    margin-top: 60px; /* Agregado para compensar el header fijo */
}

.areas-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.areas-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
}

.areas-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.area-card {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.area-header {
    background: rgb(75, 17, 17);
    color: #fff;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.area-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.area-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    position: relative;
}

.area-icon {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 15px;
    display: block;
}

.area-body {
    padding: 30px;
}

.area-body p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.services-list {
    background: rgba(75, 17, 17, 0.03);
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.services-list h3 {
    color: rgb(75, 17, 17);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(75, 17, 17, 0.1);
}

.services-list ul {
    list-style: none;
    padding: 0;
}

.services-list ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-list ul li i {
    color: #ffd700;
    background: rgb(75, 17, 17);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(rgba(75, 17, 17, 0.85), rgba(75, 17, 17, 0.85)), url(../imagenes/inicio_fondo.png);
    background-size: cover;
    background-position: center;
    padding: 180px 0 80px;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
}

.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-info h2 {
    color: rgb(75, 17, 17);
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #ffd700;
}

.info-items {
    display: grid;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    color: rgb(75, 17, 17);
    font-size: 1.5rem;
    background: rgba(75, 17, 17, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group label i {
    color: rgb(75, 17, 17);
    margin-right: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgb(75, 17, 17);
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 17, 17, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.checkbox-group a {
    color: rgb(75, 17, 17);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background-color: rgb(75, 17, 17);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form button:hover {
    background-color: #ffd700;
    color: rgb(75, 17, 17);
    transform: translateY(-2px);
}

.contact-form button i {
    font-size: 1.2rem;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(rgba(75, 17, 17, 0.85), rgba(75, 17, 17, 0.85)), url(../imagenes/inicio_fondo.png);
    background-size: cover;
    background-position: center;
    padding: 180px 0 80px;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
}

.about-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.about-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.about-icon {
    font-size: 2.5rem;
    color: rgb(75, 17, 17);
    margin-bottom: 20px;
}

.about-card h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

/* Valores Section */
.valores-section {
    margin-bottom: 80px;
    text-align: center;
}

.valores-section h2 {
    color: rgb(75, 17, 17);
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-family: 'Cinzel', serif;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.valor-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.valor-card i {
    font-size: 2rem;
    color: #ffd700;
    background: rgb(75, 17, 17);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.valor-card h3 {
    color: rgb(75, 17, 17);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.valor-card p {
    color: #666;
}

/* Why Us Section */
.why-us-section {
    text-align: center;
    margin-bottom: 80px;
}

.why-us-section h2 {
    color: rgb(75, 17, 17);
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-family: 'Cinzel', serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-item i {
    font-size: 2rem;
    color: rgb(75, 17, 17);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
}

/* About CTA Section */
.about-cta {
    background: linear-gradient(rgba(75, 17, 17, 0.97), rgba(75, 17, 17, 0.97));
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.about-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.about-cta .btn {
    min-width: 200px;
    font-size: 1.1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

@media screen and (max-width: 768px) {
    .header-content {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1000;
    }

    .nav-desktop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(75, 17, 17, 0.95);
        padding-top: 80px;
    }

    .nav-desktop.active {
        display: block;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 20px;
    }

    .menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .menu li a {
        font-size: 1.2rem;
        padding: 15px;
        display: block;
        width: 100%;
    }
}
