/* ------------------------------
   RESET BÁSICO
------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #333;
    background-color: #f5f5f7;
}

:root{
  /* Dorados */
  --gold-main: #c9a24d;      /* dorado principal */
  --gold-dark: #a8832f;      /* dorado oscuro */
  --gold-soft: #e6cf8a;      /* dorado suave */

  /* Oscuros */
  --dark-main: #111111;      /* negro profundo */
  --dark-soft: #1c1c1c;      /* gris muy oscuro */
  --gray-text: #6f6f6f;

  /* Fondos */
  --bg-light: #f5f5f7;
  --bg-dark: linear-gradient(90deg, #000000 0%, #3a2a00 45%, #c9a24d 100%);
}

/* Contenedor genérico */
.container {
    width: min(1200px, 100% - 40px);
    margin: 0 auto;
}

/* ------------------------------
   HEADER / NAV
------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #111111;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 44px;
    object-fit: contain;
}

/* Navegación */
.main-nav {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e5e5e5;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--gold-main);
    transform: translateY(-1px);
}

/* Botón hamburguesa (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #e5e5e5;
    border-radius: 999px;
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 72px; /* para compensar header fixed */
    background-image: url("https://media.istockphoto.com/id/1481370371/photo/portrait-of-enthusiastic-hispanic-young-woman-working-on-computer-in-a-modern-bright-office.webp?b=1&s=612x612&w=0&k=20&c=AGOJXifLU9XIuio3YN2MrB4EP7O9Jn0ltpiuxE8eD3w=");
    background-size: cover;
    background-position: center;
}

.hero-overlay{
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.75) 0%,
    rgba(58,42,0,0.75) 45%,
    rgba(201,162,77,0.75) 100%
  );
}


.hero-content {
    position: relative;
    max-width: 520px;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 24px;
    opacity: 0.95;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary{
  background-color: var(--gold-main);
  color: #111;
  box-shadow: 0 8px 18px rgba(201,162,77,0.35);
}

.btn-primary:hover{
  background-color: var(--gold-dark);
  box-shadow: 0 12px 26px rgba(201,162,77,0.45);
}

/* ------------------------------
   SECCIONES GENERALES
------------------------------ */
.section-light {
    background: #f5f5f7;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-underline {
    display: inline-block;
    width: 80px;
    height: 3px;
    margin-top: 12px;
    background: var(--gold-main);
}

/* ------------------------------
   TARJETAS (gestiones + servicios)
------------------------------ */
.cards-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.cards-grid {
    padding: 80px 0 40px;
}

.card {
    background: #ffffff;
    border-radius: 6px;
    padding: 40px 26px 34px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(201,162,77,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
    border-radius: 50%;
    border: 2px solid var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    max-width: 50px;
    max-height: 50px;
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 18px;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #3e2a9f;
}

/* Servicios: misma grilla */
.services-section {
    padding-top: 40px;
}

/* ------------------------------
   SECCIÓN ABOUT / LA FIRMA
------------------------------ */
.about-section {
    background: #ffffff;
    padding: 90px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 18px 55px rgba(0,0,0,0.18);
    object-fit: cover;
}

.about-label {
    color: var(--gold-main);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 18px;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #555;
}

.about-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 28px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(201,162,77,0.15);
    color: var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

/* ------------------------------
   CONTACTO (ancla vacía)
------------------------------ */
.contact-anchor {
    height: 1px;
}

/* ------------------------------
   FOOTER
------------------------------ */
.site-footer {
    background: #111111;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.6fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 16px;
}

.footer-column p {
    font-size: 0.9rem;
    color: #cfcfcf;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer-column a {
    text-decoration: none;
    color: #cfcfcf;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--gold-main);

}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: #3e2a9f;
    color: #fff;
    border-color: #3e2a9f;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    margin-top: 2px;
    color: var(--gold-main);
}

/* Barra inferior */
.footer-bottom {
    background: #000;
    color: #fff;
    font-size: 0.85rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.dev-name {
    font-weight: 600;
}

/* ------------------------------
   ANIMACIONES CON JS
------------------------------ */
/* Animaciones visibles por defecto */
.animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Clase usada opcionalmente por JS */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 992px) {
    .cards-grid-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        padding: 12px 18px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        transform-origin: top right;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
        min-width: 200px;
    }

    .nav-links.nav-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .cards-grid-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ====== Animación on-scroll (si no la tenías) ====== */
.animate-on-scroll { opacity: 0; transform: translateY(18px); transition: all .6s ease; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* ====== MODAL ====== */
.modal-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
}

.modal{
  position: fixed; inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 18px;
}

.modal-dialog{
  width: min(920px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.modal-close{
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  float: right;
}

body.modal-open { overflow: hidden; }

/* Botón link dentro de cards */
.card-link{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

/* ====== TEAM ====== */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.team-card{
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding-bottom: 14px;
}
.team-photo{ width: 100%; height: 220px; object-fit: cover; display:block; }
.team-card h3{ margin: 12px 14px 2px; }
.team-role{ margin: 0 14px; opacity: .75; }

/* ====== NEWS ====== */
.news-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.news-card{
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.news-img{ width: 100%; height: 220px; object-fit: cover; display:block; }
.news-body{ padding: 14px; }
.news-date{ opacity: .7; margin: 0 0 6px; font-size: 14px; }

/* ====== CONTACT ====== */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: start;
}
.contact-form input, .contact-form textarea{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  outline: none;
  font-family: inherit;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-list{ list-style:none; padding:0; margin: 12px 0 0; }
.contact-list li{ margin: 10px 0; display:flex; gap:10px; align-items:flex-start; }

/* Responsive */
@media (max-width: 900px){
  .team-grid{ grid-template-columns: 1fr; }
  .news-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
}

/* =========================
   FIX: respetar atributo hidden
   (evita que el modal aparezca al cargar)
========================= */
.modal[hidden],
.modal-overlay[hidden]{
  display: none !important;
}

.card-icon i{
  font-size: 34px;
  color: var(--gold-main);
  line-height: 1;
}

/* =========================
   FIX FOOTER: textos visibles en fondo oscuro
========================= */

/* Títulos del footer (estaban oscuros) */
.site-footer .footer-column h3,
.site-footer .footer-column h4{
  color: #f2f2f2;
}

/* Listas del footer (li) para que no queden oscuros */
.site-footer .footer-column ul li{
  color: #cfcfcf;
}

/* Enlaces del footer más claros */
.site-footer .footer-column a{
  color: #e6e6e6;
}
.site-footer .footer-column a:hover{
  color: var(--gold-main);
}

/* Columna contacto: texto + íconos */
.site-footer .footer-contact li{
  color: #cfcfcf;
}
.site-footer .footer-contact i{
  color: var(--gold-main);
}

/* Íconos sociales: estaban #555 (muy oscuro) */
.site-footer .footer-social a{
  color: #e6e6e6;
  border-color: rgba(255,255,255,.18);
}
.site-footer .footer-social a:hover{
  background: var(--gold-main);
  color: #111;
  border-color: var(--gold-main);
}

/* Footer bottom: asegurar contraste */
.footer-bottom{
  color: #f2f2f2;
}
.footer-bottom a{
  color: #f2f2f2;
}
