/* ========= BASE / LAYOUT ========= */
:root{ --nav-h: 64px; --site-bg: #ffffff; --bg-step: 0; }
:root{ --nav-h: 64px; /* fondo por defecto más claro para evitar tonos oscuros agresivos */
  --site-bg: #f7f7f7; --bg-step: 0; }

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  font-family: 'Titillium Web', system-ui, -apple-system, sans-serif;
  /* Usar variable --site-bg para facilitar cambios de tema/ajustes futuros */
  /* superponemos una capa negra con opacidad variable (--bg-step) para "intensificar" el fondo al hacer scroll */
  background: linear-gradient(rgba(0,0,0,var(--bg-step)), rgba(0,0,0,var(--bg-step))), var(--site-bg);
  background-repeat: no-repeat;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}






/* Si el navbar es fixed-top, que no tape anclas (#seccion) */
section[id]{ scroll-margin-top: var(--nav-h); }

/* Espaciado global entre secciones */
section{ padding: clamp(28px, 5vw, 64px) 0; }
section h2{ margin-bottom: 16px; color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.45); }
@media (max-width: 576px){
  :root{ --nav-h: 72px; }
  section{ padding: 24px 0; }
  section h2{ margin-bottom: 12px; }
}

/* Navbar */
.navbar{ box-shadow: 0 2px 4px rgba(255, 0, 0, 0.05); }

/* ========= HERO ========= */
.hero{
  /* Full viewport height (with padding counted via border-box) */
  height: 100vh;                /* fallback for older browsers */
  height: 100svh;               /* modern mobile browsers (excludes URL bars) */
  padding-top: var(--nav-h);
  margin-bottom: 0;             /* evita franjas por colapso */
  display: flex; align-items: center; /* centra verticalmente el contenido */
  overflow: hidden;             /* evita que se asome la sección siguiente por colapsos */
  color: #fff;
  /* Hero con overlay y fondo estático (sin depender de variables JS) */
  background:
    linear-gradient(rgba(248, 243, 243, 0.3), rgba(0,0,0,.30)),
    url('img/Notarial2.png') center / cover no-repeat;
}
.hero .display-4{ text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hero .lead{       text-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* Encapsulado del contenido del hero */
.hero .container{ display:flex; justify-content:center; }
.hero-content{
  width: min(92vw, 880px);
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px);
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  background-blend-mode: overlay;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(11,27,34,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Tipografías hero responsivas */
.hero-title{
  font-size: clamp(28px, 3.5vw + 8px, 56px);
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hero-subtitle{
  font-size: clamp(20px, 1.2vw + 14px, 24px);
  text-shadow: 0 2px 8px rgba(0,0,0,.30);
}
.hero-text{
  font-size: clamp(15px, .9vw + 12px, 18px);
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
  color: rgba(255,255,255,0.95);
}

/* CTA dentro del hero */
.hero-cta{
  padding: .6rem 1.05rem;
  font-weight: 600;
}
.hero-copy p{ margin-bottom: .5rem; }

/* Hero en móviles: más compacto */
@media (max-width: 576px){
  .hero{
    /* En móviles, también forzamos a ocupar el alto visible */
    height: 100svh;
    align-items: center;
    padding-bottom: 12px;
    background-position: center 68%;
  }
  .hero-content{
    width: 92vw; max-width: 560px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
  }
}

/* ========= GALERÍA ========= */
.object-fit-cover{ object-fit: cover; }

/* Si seguís usando .portfolio-container */
.portfolio-container img{
  display:block; width:100%;
  transition: transform .6s ease;
  border-radius: .75rem;
}
.portfolio-container:hover img{ transform: scale(1.03); }

/* Hover zoom moderno */
.gallery-zoom{ position: relative; overflow: hidden; border-radius: .75rem; }
.gallery-zoom img{
  width: 100%; height: 100%;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.gallery-zoom:hover img{ transform: scale(1.15); }
.gallery-zoom:hover{ box-shadow: 0 12px 28px rgba(0,0,0,.18); }

/* Accesibilidad y dispositivos táctiles */
@media (prefers-reduced-motion: reduce){
  .gallery-zoom img{ transition: none; }
}
@media (hover: none){
  .gallery-zoom:hover img{ transform: none; }
  .gallery-zoom:hover{ box-shadow: none; }
}

/* ========= TRÁMITES ========= */
#tramites{ scroll-margin-top: 64px; }
#tramites h2{ font-weight: 600; letter-spacing: .2px; }

#tramites .card{
  border: 0;
  border-radius: .75rem;
  box-shadow: 0 6px 22px rgba(6,12,20,.08);
  transition: transform .22s ease, box-shadow .22s ease;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  border-left: 10px solid var(--accent-color, #000000);
}
#tramites .card:hover{
  transform: translateY(-10px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
#tramites .card-body{ padding: 1.25rem; }
#tramites .card .h5{ font-weight: 700; color:#0b3b4a; display:flex; align-items:center; justify-content:center; gap:.5rem; }
#tramites .card .h5 .icon{ font-size:1.15rem; opacity:.95; color: var(--accent-color, #3f210f); }

/* Viñeta sutil (color a elección) */
#tramites .card-body ul li{
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .5rem;
  line-height: 1.45;
}
#tramites .card-body ul li::before{
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--accent-color, #000000);
  box-shadow: 0 4px 8px rgba(102,16,242,0.12);
}
@media (max-width: 576px){
  #tramites .row.g-4{ row-gap: 1rem; }
  #tramites .card-body{ padding: 1rem; }
}
@media (prefers-reduced-motion: reduce){
  #tramites .card{ transition: none; }
}

/* ========= LINKS ÚTILES ========= */
#links .btn{
  border-radius: 999px;
  padding: .5rem 1rem;
}
@media (max-width: 576px){
  #links .btn{ width: 100%; }
}

/* Opción 1: botones más grandes y más espacio */
#links .d-flex {
  gap: 1rem; /* ya tienes gap-3, pero lo reforzamos si hace falta */
  justify-content: center;
}
#links .btn {
  padding: 0.75rem 1.25rem;
  font-size: 1.05rem;
  border-radius: 999px;
  min-width: 160px; /* fuerza tamaño mínimo */
}
@media (max-width: 576px){
  #links .btn { width: 100%; min-width: 0; }
}

/* Opción 2: grid responsivo para Links útiles */
.links-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}
.links-grid .btn{
  width: 100%;
  max-width: 340px; /* opcional, evita botones excesivamente anchos */
  padding: .65rem 1rem;
  font-size: 1rem;
}
@media (max-width: 576px){
  .links-grid{ gap: .6rem; }
  .links-grid .btn{ font-size: .98rem; }
}

/* ========= CONTACTO ========= */
/* Si querés compactar las cards del contacto */
#contacto .card{ border:0; }
#contacto .card-body{ padding: 1rem; }
@media (max-width: 576px){
  #contacto .card-body{ padding: .875rem; }
}

/* ========= WHATSAPP FLOTANTE ========= */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 65px; height: 65px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: #25D366; color:#fff;
  font-size: 40px; text-decoration:none;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 1050;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  animation: wp-pulse 2.4s infinite;
}
.whatsapp-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  color:#fff;
}
@keyframes wp-pulse{
  0%{   box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%{  box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce){
  .whatsapp-float{ animation:none; transition:none; }
}
@media (max-width: 576px){
  .whatsapp-float{ right:14px; bottom:14px; }
}

/* Test button removed */

/* Debug panel removed */

/* ========= FOOTER ========= */
footer{
  margin-top: auto;                /* sticky si la página es corta */
  padding-top: 12px; padding-bottom: 12px;
  line-height: 1.35;
  font-size: 1.125rem;             /* ~18px */
}
@media (min-width: 768px){
  footer{ font-size: 1.25rem; }    /* ~20px en desktop */
}
footer a.link-light:hover{ text-decoration: underline; }

/* Footer specific styling */
.site-footer{ border-top: 1px solid rgba(255,255,255,0.03); }
.site-footer .socials .icon{ font-size: 20px; }
.site-footer .socials a{ font-size: 20px; color: #fff; opacity: .95; }
.site-footer .socials a:hover{ opacity: 1; transform: translateY(-2px); }
.site-footer img{ vertical-align: middle; }
.site-footer a.link-light{ opacity: .95; }
.site-footer .small{ opacity: .8; margin-top: 4px; }

/* Contact form improvements */
#contact-status{ min-height: 2rem; }
#contact-submit[disabled]{ opacity: .85; cursor: not-allowed; }

/* Slight spacing for input-group icons */
.input-group-text .icon, .input-group-text{ display:inline-flex; align-items:center; justify-content:center; }

/* ========= UTILIDAD: FULL-BLEED (si alguna vez lo necesitás) ========= */
/* Para forzar ancho completo aunque esté dentro de un wrapper .container */
.full-bleed{
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
}



/* ===== Compactar espaciado entre secciones (más chico) ===== */
section{ padding: clamp(16px, 3vw, 32px) 0 !important; }  /* antes 28–64px */
section h2{ margin-bottom: 12px !important; }

/* Evitar “doble margen” cuando hay container/rows adentro */
section > .container:last-child,
section > .container-fluid:last-child{ margin-bottom: 0; }
section > *:last-child{ margin-bottom: 0; }

/* Reducir gaps de rows con g-4 / g-5 */
.row.g-4{ row-gap: 1rem !important; }  /* 16px */
.row.g-5{ row-gap: 1.25rem !important; } /* 20px */

/* Secciones específicas aún más apretadas (opcional) */
#nuestro-espacio, #tramites, #links, #contacto{ padding: clamp(16px, 2.5vw, 28px) 0 !important; }

/* Títulos y párrafos: márgenes compactos */
h2.h3, h2{ margin-top: 0 !important; margin-bottom: 10px !important; }
p + .row, .lead + .row{ margin-top: 10px !important; }

/* Hero sin “franja” inferior extra */
.hero{ margin-bottom: 0 !important; }

/* Footer pegado (ya lo tenías) */
footer{ margin-top: auto; }


.navbar .nav-link { color: #333; font-weight: 400; opacity: .9; }
/* activo igual que el resto */
.navbar .nav-link.active { color: #333 !important; }
/* Navbar: animated active underline (tech) */
.navbar .nav-link{
  position:relative;
  padding-bottom: .5rem;
  color: #222;
  transition: color .18s ease;
}
.navbar .nav-link::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 0;
  height: 3px;
  border-radius: 6px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,#00d4ff,#7a5cff);
  box-shadow: 0 6px 18px rgba(122,92,255,0.12);
  transition: width .28s cubic-bezier(.2,.9,.25,1);
}
.navbar .nav-link:hover::after{
  width: 60%;
}
/* evitar que el enlace activo esté siempre subrayado; indicamos activo con color y ligero peso */
.navbar .nav-link.active{ color: #0b3b4a !important; font-weight:600; }
.navbar .nav-link:hover{ color: #0b3b4a; }

/* ========= AVISO MODAL (estética A: pulido sutil) ========= */
/* Gradiente en header, icon decorativo, entrada suave (fade + scale) */
.modal .modal-content{
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(45, 65, 71, 0.12);
}
.modal-header{
  background: linear-gradient(90deg, #0026ff 0%, #d1ce00 100%);
  color: #fff;
  border-bottom: 0;
  padding: 1rem 1.25rem;
  align-items: center;
}
.modal-header .modal-title{ margin: 0; font-weight: 600; }
/* decorative icon using ::before (no extra HTML) */
.modal-header::before{
  content: "";
  display: inline-block;
  width: 36px; height: 36px;
  margin-right: .6rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2v4'/><path d='M12 18v4'/><path d='M4 12h4'/><path d='M16 12h4'/><circle cx='12' cy='12' r='3'/></svg>");
  background-size: 36px 36px;
  background-repeat: no-repeat;
}
.modal-body{ padding: 1.25rem; color: #222; }
.modal-footer{ padding: .75rem 1.25rem; border-top: 0; }
.modal-footer .btn-primary{
  background: linear-gradient(90deg,#6610f2,#0d6efd);
  border: none;
  box-shadow: 0 8px 24px rgba(13,110,253,0.12);
}

/* Smooth entry: initial translate + scale, then reset on show */
.modal.fade .modal-dialog{
  transform: translateY(10px) scale(.985);
  transition: transform .28s cubic-bezier(.2,.9,.25,1), opacity .28s ease;
  opacity: 0;
}
.modal.show .modal-dialog{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Slightly blur backdrop for focus (optional; subtle) */
.modal-backdrop.show{
  backdrop-filter: blur(2px);
}

@media (prefers-reduced-motion: reduce){
  .modal.fade .modal-dialog, .modal.show .modal-dialog{ transition: none; transform: none !important; }
}

/* Bajar un poco el popup de aviso (modal de bienvenida) */
#avisoModal .modal-dialog{
  margin-top: 230px; /* antes usaba el centrado por defecto; ahora baja 60px */
}

/* ========= reCAPTCHA v3 badge: mover para no superponer el botón de WhatsApp ========= */
/* La badge de v3 se inyecta con la clase .grecaptcha-badge (Google).  */
/* reCAPTCHA v3: mover badge para que no moleste el WhatsApp flotante */
.grecaptcha-badge{
  visibility: hidden !important; /* ocultar badge (reemplazada por aviso legal en el formulario) */
}
@media (max-width: 576px){
  .grecaptcha-badge{ visibility: hidden !important; }
}

