:root {
    --primary-color: #2c3e50; /* Un gris oscuro casi negro */
    --secondary-color: #34495e; /* Un gris un poco más claro */
    --accent-color: #3498db; /* Azul para botones y acentos */
    --text-color: #ecf0f1; /* Gris muy claro para el texto */
    --dark-text: #2c3e50; /* Texto oscuro para secciones claras */
    --light-bg: #ecf0f1;
    --dark-bg: #2c3e50;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

.main-header {
    background-color: var(--dark-bg);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: block;
}

.abogada-text {
    font-weight: 400;
    font-size: 1rem;
    color: #bdc3c7;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a, .consulta-btn {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .consulta-btn:hover {
    color: var(--accent-color);
}

.consulta-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.consulta-btn:hover {
    background-color: #2980b9;
}

/* Secciones */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10rem;
}

.hero-content {
    flex: 1;
    margin-right: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.hero-image-container {
    flex: 1;
}
.hero-image {
    width: 100%;
    max-height: 400px;   /* Límite de altura */
    height: auto;        /* La altura se ajusta sola */
    object-fit: cover;   /* Mantiene proporción y recorta si es necesario */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: block;      /* evita espacios raros debajo de img */
}

.profile-image {
    flex-shrink: 0;
}

.profile-img {
    width: 300px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}


.services-section, .about-me-section, .contact-section {
    text-align: center;
}

.services-section h2, .about-me-section h2, .contact-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-bg);
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card, .contact-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.service-card:hover, .contact-card:hover {
    transform: translateY(-5px);
}

.service-card .icon, .contact-card .icon {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: #555;
}

.service-card ul li .fa-check-circle {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Sobre Mí */
.about-me-section {
    background-color: var(--dark-bg);
    color: var(--text-color);
    text-align: left;
    padding: 2rem; /* Add some padding to the section */
}

.about-me-section h2 {
    color: var(--text-color);
    text-align: center;
}

.about-me-section .subtitle {
    color: #bdc3c7;
    margin-bottom: 2rem; /* Add some space below the subtitle */
}

.about-me-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap; /* Keep this for mobile responsiveness */
}

.profile-image img {
    width: 100%;
    max-width: 300px; /* Set a max-width for the image */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.about-text {
    flex: 1; /* This makes the text block take up the remaining space */
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.credential-item {
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.credential-item .fa-check-circle {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Contacto */
.contact-section {
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.contact-card h3 {
    color: var(--dark-bg);
    font-weight: 600;
    margin-top: 1rem;
}

.contact-card p {
    color: #555;
    overflow-wrap: break-word;
}
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-color);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Media Queries para diseño responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }

    .consulta-btn {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 13rem; 
    }

    .hero-content {
        margin-right: 0;
        padding-top: 6rem; 
    }

    .hero-image-container {
        width: 100%;
        height: 300px;
    }

    .about-me-content {
        flex-direction: column;
    }

    .profile-image {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
        padding-top: 1rem;
    }
    
    .services-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .credentials {
        flex-direction: column;
        gap: 0.5rem;
    }
}

