/* ===================== VARIABLES PRINCIPALES ===================== */
:root {
    --primary-color: #2c3e50; /* Gris oscuro casi negro */
    --secondary-color: #34495e; /* Gris medio */
    --accent-color: #3498db; /* Azul profesional */
    --text-color: #ecf0f1; /* Gris claro */
    --dark-text: #2c3e50; /* Texto oscuro para secciones claras */
    --light-bg: #ecf0f1;
    --dark-bg: #2c3e50;
    --card-bg: #ffffff;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===================== HEADER ===================== */
.main-header {
    background-color: var(--dark-bg);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.abogada-text {
    font-size: 0.9rem;
    color: #bdc3c7;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.consulta-btn {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.consulta-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* ===================== HERO ===================== */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 10rem 2rem 6rem;
    background: linear-gradient(rgba(44,62,80,0.9), rgba(44,62,80,0.95)),
                url('/images/law-bg.jpg') center/cover no-repeat;
    color: var(--text-color);
  
}


.hero-content {
    flex: 1 1 500px;
    max-width: 600px;
    animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #dfe6e9;
}

.hero-image-container {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    object-fit: cover;
}

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

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

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

section h2 {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--dark-text);
    position: relative;
    margin-bottom: 1rem;
}

section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================== SERVICIOS ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: left;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

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

.service-card p {
    color: #555;
}

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

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

.service-card ul li i {
    color: var(--accent-color);
}

/* ===================== SOBRE MÍ ===================== */
.about-me-section {
    background: linear-gradient(rgba(44,62,80,0.95), rgba(44,62,80,0.97)),
                url('/images/law-office.jpg') center/cover no-repeat;
    color: var(--text-color);
    border-radius: 12px;
}

.about-me-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.profile-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    object-fit: cover;
}

.about-text {
    flex: 1;
}

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

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

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

.credential-item {
    background-color: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.credential-item i {
    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 {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.contact-card i {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #555;
    line-height: 1.5;
}

/* ===================== SIN CONTENIDO ===================== */
.no-content {
    text-align: center;
    background-color: rgba(236,240,241,0.5);
    border: 1px dashed #bdc3c7;
    padding: 1.5rem;
    border-radius: 10px;
    color: #7f8c8d;
    margin-top: 2rem;
    font-style: italic;
}

/* ===================== FOOTER ===================== */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-color);
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 4rem;
}

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

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

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

/* ===================== ANIMACIONES ===================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .hero-image {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .navbar {
        flex-wrap: wrap;
    }

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

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

    .profile-image img {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
       padding-top: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== Consent Banner / Modal (Honduras) ===== */
.hnc-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    background: var(--dark-bg);
    color: var(--text-color);
    z-index: 9999;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
    padding: 1rem 0;
    font-family: 'Poppins', sans-serif;
  }
  
  .hnc-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
  }
  
  .hnc-banner__text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: #ffffff;
  }
  
  .hnc-banner__text p { color: #dfe6e9; margin-bottom: 0.25rem; }
  .hnc-banner__links a { color: var(--accent-color); text-decoration: underline; }
  
  .hnc-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .hnc-btn {
    background: var(--accent-color);
    color: #fff;
    border: 0;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
  }
  .hnc-btn:hover { transform: translateY(-1px); }
  .hnc-btn:active { transform: translateY(0); }
  
  .hnc-btn--secondary {
    background: var(--secondary-color);
  }
  .hnc-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
  }
  .hnc-btn--ghost:hover { background: rgba(255,255,255,.06); }
  
  @media (max-width: 720px) {
    .hnc-banner__content { grid-template-columns: 1fr; }
    .hnc-banner__actions { justify-content: flex-start; }
  }
  
  /* ===== Modal ===== */
  .hnc-modal[hidden] { display: none !important; }
  .hnc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
  }
  
  .hnc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
  }
  
  .hnc-modal__dialog {
    position: relative;
    width: min(720px, 92vw);
    background: var(--card-bg);
    color: var(--dark-text);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    overflow: hidden;
    animation: hnc-pop .18s ease-out;
  }
  @keyframes hnc-pop {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  .hnc-modal__header, .hnc-modal__footer {
    padding: 1rem 1.25rem;
    background: #f6f7f9;
    border-bottom: 1px solid #eceff1;
  }
  .hnc-modal__footer { border-top: 1px solid #eceff1; border-bottom: 0; display: flex; gap: .5rem; justify-content: flex-end; background: #fff; }
  
  .hnc-modal__body {
    padding: 1rem 1.25rem 1.25rem;
  }
  
  .hnc-modal__close {
    appearance: none;
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--secondary-color);
    cursor: pointer;
    margin-left: auto;
  }
  
  .hnc-toggle {
    display: block;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: .8rem 1rem;
    margin-bottom: .8rem;
    background: #fff;
  }
  .hnc-toggle--locked {
    border-style: dashed;
    background: #fafafa;
  }
  .hnc-toggle__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .25rem;
  }
  .hnc-toggle__state { color: #7f8c8d; font-size: .95rem; }
  .hnc-toggle p { color: #555; font-size: .95rem; margin: 0; }
  
  .hnc-toggle input[type="checkbox"] {
    width: 46px;
    height: 26px;
    appearance: none;
    background: #cfd8dc;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background .2s ease;
  }
  .hnc-toggle input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
  }
  .hnc-toggle input[type="checkbox"]:checked {
    background: var(--accent-color);
  }
  .hnc-toggle input[type="checkbox"]:checked::after {
    transform: translateX(20px);
  }
  
