/* =========================
   VARIABLES / ROOT
========================= */

:root {
  --primary: #2563EB;        /* azul moderno */
  --primary-hover: #1D4ED8;

  --accent: #06B6D4;         /* cyan vibrante */
  --accent-hover: #0891B2;

  --dark: #0F172A;
  --text: #1E293B;
  --muted: #64748B;

  --light: #FFFFFF;
  --soft: #F1F5F9;

  --footer-bg: #020617;
  --footer-text: #CBD5F5;

  --whatsapp: #22C55E;
  --whatsapp-dark: #16A34A;
}

/* =========================
   BASE GLOBAL
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
   overflow-x:hidden;
}

h1, h2, h3 {
  letter-spacing: -0.5px;
}


/* =========================
   HEADER
========================= */
.header {
   position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
}

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

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0f172a;
}

.logo img {
  width: 35px;
}

.logo span {
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* MENU */
.menu {
  display: flex;
  gap: 25px;
  list-style: none;
}

.menu a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  position: relative;
}

/* efecto línea elegante */
.menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
 background: var(--primary);
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

/* ACCIONES */
.acciones {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon {
  color: #334155;
  font-size: 14px;
}





/* =========================
   HERO
========================= */
.hero {
  min-height:calc(100vh - 70px);
    padding:100px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at top, #ffffff 0%, #e9e9e9 100%);
}

.hero-contenido {
  max-width: 700px;
}

.hero h1 {
   
  font-weight: 700;
  color: var(--dark);

  font-size:clamp(2rem,5vw,3.25rem);
  line-height:1.1;
  margin-bottom:20px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: auto;
  font-size:clamp(.95rem,2vw,1.125rem);
  line-height:1.7;
  margin-bottom:30px;
}

/* BOTONES GENERALES */
.hero-botones {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 0.5rem;
}

.btn-contacto,
.btn-principal,
.btn-secundario,
.btn-trabajo {
  background: var(--primary);
  margin-top: 0.2rem;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(30,107,162,0.2);
  text-decoration: none;

}

.btn-secundario {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}



.btn-accent {
  background: var(--accent);
}


.btn-contacto:hover,
.btn-principal:hover,
.btn-trabajo:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
  box-shadow: 0 15px 30px rgba(30,107,162,0.3);
}

/* =========================
   SECCIÓN SERVICIOS
========================= */

/* =======================
SERVICIOS HEADER
======================= */

#servicios{
    scroll-margin-top: 40px;
}

.servicios-header{
    text-align:center;
    max-width:700px;
    margin:0 auto 60px;
    padding:0 20px;
}

.servicios-header h2{
    font-size:2.2rem;
    font-weight:700;
    margin-bottom:15px;
    color:#0b1220;
    position:relative;
}



.servicios-header h2::after{
    content:"";
    display:block;
    width:70px;
    height:4px;
    margin:14px auto 0;
    border-radius:10px;
    background:var(--primary);
}

.servicios-header p{
    font-size:1rem;
    line-height:1.8;
    color:#6b7280;
}

.servicios {
  padding: 80px 20px;
  background: #f1f5f9;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* =========================
   CARD SYSTEM (PRO)
========================= */
.card {
  perspective: 1200px;
  height:350px;
    /* height:auto; */
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
   transform-origin: center;
   background: white;
  border-radius: 12px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  z-index: 10;
}

/* FLIP */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.card.active .card-inner {
  transform: rotateY(180deg) scale(1.01);
}

/* CARAS */
.card-front,
.card-back {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: white;
  text-align: center;
  /* padding: 5px; */
  box-sizing: border-box;
}

/* FRONT */
.card-front {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.2)
  );
  border-radius: 12px;
  transition: all 0.4s ease;
}

.card:hover .card-front::before {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0.3)
  );
}

.card-front h3,
.card-front button,
.card-front p {
  position: relative;
  z-index: 2;
}

/* BACK */
.card-back {
  background: #0f172a;
  transform: rotateY(180deg);
  overflow-y: auto;
  scroll-behavior: smooth;
  border: 1px solid rgba(255,255,255,0.05);
}

/* CONTENIDO */
.contenido {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.contenido h3 {
  margin-bottom: 5px;
}

/* TEXTOS */
.mini-text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 5px;
}

.problema {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

.beneficio {
  font-weight: 600;
  color: var(--primary);
}

/* LISTAS */
.contenido ul {
  text-align: left;
  padding-left: 0;
  list-style: none;
}

.contenido ul li {
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

/* BOTONES */
.btn-ver {
  margin-top: 2.5rem;
  padding: 8px 14px;
  border: none;
 background: var(--accent);
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.btn-ver:hover {
  background: var(--accent-hover);
}

.btn-accion {
  margin-top: auto;
  padding: 10px 16px;
  /* background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark)); */
   background: var(--primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-accion:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
}

/* cerrar */
.btn-cerrar {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  color: black;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: bold;
}

/* =========================
   IMÁGENES
========================= */
.impuestos {
  background-image: url('../assets/impuestos.jpg');
}

.contabilidad {
  background-image: url('../assets/contabilidad.jpg');
}

.finanzas {
  background-image: url('../assets/finanzas.jpg');
}

.laboral {
  background-image: url('../assets/laboral.jpg');
}


.societario {
  background-image: url('../assets/societario.jpg');
}

.monotributo {
  background-image: url('../assets/monotributo.jpg');
}

.regularizacion {
  background-image: url('../assets/regularizacion.jpg');
}

.auditoria {
  background-image: url('../assets/auditoria.jpg');
}

.facturacion {
  background-image: url('../assets/facturacion.jpg');
}



/* =========================
   SCROLL PERSONALIZADO
========================= */
.card-back::-webkit-scrollbar {
  width: 6px;
}

.card-back::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}




/* =========================
   NOSOTROS
========================= */
#nosotros{
    scroll-margin-top: 80px;
}

.nosotros{
  display: flex;
   align-items: flex-start; /* 🔥 arranca desde arriba */
   justify-content: center;
   gap: 40px;
   padding: 60px 80px;
    max-width: 1100px;
  margin: auto;
  
}

.nosotros h2{
   
    font-size:2.2rem;
    font-weight:700;
    margin-bottom:10px;
    color:#0b1220;
    position:relative;
    display:inline-block;
}


.nosotros h2::after{
    content:"";
    display:block;
    width:70px;
    height:4px;
    margin:14px auto 0;
    border-radius:10px;
    background:var(--primary);
}

/* lado izquierdo */
.foto {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;  /* centra todo */
  /* text-align: center; */
}
/* lado derecho */
.description {
  flex: 2;
}
.info{
  text-align:start
}

.info{
    font-size:2.2rem;
    font-weight:700;
    color:#0b1220;
}

/* imagen prolija */
.foto img {
  width: 250px;        /* 🔥 fijo */
  height: 250px;       /* 🔥 igual al width */
  border-radius: 50%;
  object-fit: cover;   /* 🔥 no se deforma */
  object-position: center 0%; /* 🔥 BAJA la imagen */
  margin-bottom: 10px;
    
}

/* línea automática */
.img-wrapper::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
 background: var(--primary);
  margin: 10px auto;
  border-radius: 2px;
}

.foto h4 {
  margin: 10px 0 5px;
}

.foto p {
  margin: 2px 0;
}




/* =========================
   RRHH
========================= */



.trabajo {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.trabajo-contenido {
  max-width: 700px;
  margin: auto;
}

.trabajo h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.trabajo .descripcion {
  font-size: 18px;
  color: #cbd5f5;
  margin-bottom: 30px;
}



.btn-trabajo:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.confidencialidad {
  margin-top: 30px;
  font-size: 14px;
  color: #94a3b8;
}


/* =========================
   FORMULARIO
========================= */
/* =========================
   CONTACTO LAYOUT
========================= */

#contacto{
    scroll-margin-top: 30px;
}

.contacto {
  padding: 80px 20px;
  background: #f8fafc;
}



.contacto h2, .ubicacion h2{
    text-align: center;
    font-size:2.2rem;
    font-weight:700;
    margin-bottom:10px;
    color:#0b1220;
    position:relative;
}


.contacto h2::after, .ubicacion h2:after{
    content:"";
    display:block;
    width:70px;
    height:4px;
    margin:14px auto 0;
    border-radius:10px;
    background:var(--primary);
}

.sub {
  text-align: center;
  margin-bottom: 40px;
  color: #64748b;
}

/* GRID PRINCIPAL */
/* .contacto .ubicacion {
  max-width: 1100px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
} */

.contacto{
    padding:80px 20px;
    background:#f8fafc;
}

/* FORM */
.formulario {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;

  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* GRUPO */
.grupo {
   position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* UBICACION */
.ubicacion{
    max-width:1100px;
    margin:60px auto;
    padding:0 20px;

    display:flex;
    flex-direction:column;
    gap:30px;
}

.grupo label {
   position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 0 6px;
  color: #64748b;
  font-size: 14px;
  pointer-events: none;
  transition: 0.25s ease;
}

/* ANIMACIÓN FLOAT */
.grupo input:focus + label,
.grupo input:not(:placeholder-shown) + label,
.grupo textarea:focus + label,
.grupo textarea:not(:placeholder-shown) + label {
  top: -8px;
  transform: none;
  font-size: 12px;
  color: #2563eb;
}

/* INPUTS */
.grupo input,
.grupo textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  transition: 0.2s;
  border: 1px solid #e2e8f0;
   background: #f9fafb;
}

/* FOCUS PRO */
.grupo input:focus,
.grupo textarea:focus {
 background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* TEXTAREA */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* BOTON */
button {
  margin-top: 15px;
  padding: 14px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  font-size: 15px;
  border-radius: 10px;
}

button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* MAPA */
.map iframe {
  border-radius: 10px;
}

/* DATOS */
.datos {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}



/* =========================
   UBICACION
========================= */

.ubicacion{
    max-width:1100px;
    margin:60px auto;
    padding:0 20px;

    display:flex;
    flex-direction:column;
    gap:30px;
}

.ubicacion h2{
    text-align:center;
}

.map iframe{
    width:100%;
    height:450px;
    border-radius:12px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.datos{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:20px;
}

.datos div{
    background:white;

    padding:20px;

    border-radius:12px;

    box-shadow:
    0 5px 15px rgba(0,0,0,.05);
}

.datos h3{
    margin-bottom:8px;
    color:var(--primary);
}

.datos a {
  color: #2563eb;
  text-decoration: none;
}


.datos p{
    color:var(--muted);
    line-height:1.6;
}





/* =========================
   FOOTER BASE
========================= */

.footer {
  
  background: var(--footer-bg);
  color:var(--footer-text);
  color: #cbd5e1;
  padding: 60px 20px 20px;
  position: relative;
}

/* línea superior */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #3b82f6, #60a5fa);
}

/* =========================
   LAYOUT
========================= */

.footer-contenido {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

/* =========================
   MARCA
========================= */

.marca-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.marca-header img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.marca-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  color: white;
}

.marca p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 260px;
}

/* =========================
   TIPOGRAFÍA
========================= */

.footer h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 15px;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   LINKS
========================= */

.footer a {
  color: #93c5fd;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: white;
}

/* =========================
   LISTAS
========================= */

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}


/* =========================
   ICONOS CONTACTO
========================= */

.footer p i {
  margin-right: 8px;
  color: #60a5fa;
}

/* =========================
   REDES
========================= */

.redes {
  margin-top: 15px;
  display: flex;
  gap: 12px;
}

.redes a {
  width: 36px;
  height: 36px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: 0.3s;
}

.redes a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* =========================
   CTA
========================= */

.cta p {
  margin-bottom: 10px;
}

.btn-footer {
  display: inline-block;
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.btn-footer:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* =========================
   FOOTER BOTTOM
========================= */



.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  border-top: 1px solid #334155;
  padding-top: 15px;
  color: var(--muted);
}

/* ================= BASE REVEAL ================= */
.reveal,
.reveal-bottom,
.reveal-left,
.reveal-right {
    opacity: 0;
    will-change: transform, opacity;
    transition: 
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= DIRECCIONES ================= */
.reveal,
.reveal-bottom {
    transform: translateY(25px) scale(0.96);
    /* filter: blur(2px);  efecto borroso*/
}

.reveal-left {
    transform: translateX(-25px) scale(0.96);
    /* filter: blur(2px);  efecto borroso*/
}

.reveal-right {
    transform: translateX(25px) scale(0.96);
    /* filter: blur(2px);  efecto borroso*/
}

/* ================= ESTADO ACTIVO ================= */
.reveal.active,
.reveal-bottom.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* ================= FADE ================= */
.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.reveal-fade.active {
    opacity: 1;
}

.card-wrapper {
    transform: translateZ(0);
}

/* ================= DELAY EN CARDS ================= */
/* BLOQUES DE 3 */
/* .card-wrapper:nth-child(1) { transition-delay: 0.05s; }
.card-wrapper:nth-child(2) { transition-delay: 0.1s; }
.card-wrapper:nth-child(3) { transition-delay: 0.15s; }
.card-wrapper:nth-child(4) { transition-delay: 0.2s; }
.card-wrapper:nth-child(5) { transition-delay: 0.25s; }
.card-wrapper:nth-child(6) { transition-delay: 0.3s; }
.card-wrapper:nth-child(7) { transition-delay: 0.35s; }
.card-wrapper:nth-child(8) { transition-delay: 0.4s; }
.card-wrapper:nth-child(9) { transition-delay: 0.45s; } */


/* ======Animacion expansiva interna de Card ================= */

/*aparece oculto y comprimido*/
.card-front h3,
.card-front p,
.card-front button {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(4px);
    transition: 
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/*cuando la card aparece (activo)*/
.card-wrapper.active .card-front h3,
.card-wrapper.active .card-front p,
.card-wrapper.active .card-front button {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/*EFECTO PRO (delay escalonado)*/
.card-wrapper.active .card-front h3 {
    transition-delay: 0.2s;
}

.card-wrapper.active .card-front p {
    transition-delay: 0.35s;
}

.card-wrapper.active .card-front button {
    transition-delay: 0.5s;
}



/* animación */

@keyframes aparecer{

from{

opacity:0;
transform:
translateY(30px)
scale(.95);

}

to{

opacity:1;
transform:
translateY(0)
scale(1);

}

}


/* =========================
   PAGINA CONFIRMACION
========================= */

.pagina-confirmacion{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

    background:
    radial-gradient(
    circle at top,
    #ffffff 0%,
    #f1f5f9 100%
    );
}

/* tarjeta */

.mensaje-enviado{

    max-width:550px;
    width:100%;

    background:var(--light);

    padding:50px 40px;

    border-radius:20px;

    text-align:center;

    border:1px solid rgba(0,0,0,.04);

    box-shadow:
    0 15px 35px rgba(0,0,0,.08);

    animation:aparecer .8s ease;
}

/* logo */

.logo-confirmacion{

    width:70px;
    height:70px;

    object-fit:cover;

    border-radius:14px;

    margin-bottom:20px;

    box-shadow:
    0 8px 18px rgba(0,0,0,.08);

}

/* círculo check */

.check-confirmacion{

    width:80px;
    height:80px;

    margin:0 auto 25px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#dbeafe;

    color:var(--primary);

    font-size:2rem;
    font-weight:bold;
}

/* título */

.mensaje-enviado h1{

    color:var(--dark);

    font-size:2rem;

    margin-bottom:15px;
}

/* texto */

.mensaje-principal{

    margin-bottom:10px;

    color:var(--text);

    line-height:1.8;
}

.mensaje-secundario{

    color:var(--muted);

    line-height:1.8;

    margin-bottom:30px;
}

/* botón */

.btn-volver{

    display:inline-block;

    padding:14px 24px;

    background:var(--primary);

    color:white;

    text-decoration:none;

    border-radius:10px;

    font-weight:600;

    transition:.3s ease;
}

.btn-volver:hover{

    background:var(--primary-hover);

    transform:translateY(-3px);

    box-shadow:
    0 10px 20px rgba(37,99,235,.25);
}







/*Hamburguesas*/
/* HAMBURGUESA OCULTA EN DESKTOP */
/* botón */
.menu-toggle{
    display:none;
    width:42px;
    height:42px;

    background:rgba(37,99,235,.08);
    border:1px solid rgba(37,99,235,.15);
    border-radius:10px;

    cursor:pointer;
    position:relative;
    z-index:1001;

    transition:.3s ease;
}

/* hover */
.menu-toggle:hover{
    background:rgba(37,99,235,.15);
}

/* rayas */
.menu-toggle span{
    position:absolute;
    width:22px;
    height:2.5px;

    background:var(--primary);

    border-radius:10px;

    left:50%;
    transform:translateX(-50%);

    transition:.3s ease;
}

/* posiciones */
.menu-toggle span:nth-child(1){
    top:12px;
}

.menu-toggle span:nth-child(2){
    top:19px;
}

.menu-toggle span:nth-child(3){
    top:26px;
}

/* estado activo */
.menu-toggle.active{
    background:var(--primary);
}

/* X */
.menu-toggle.active span{
    background:white;
}

.menu-toggle.active span:nth-child(1){
    transform:
    translateX(-50%)
    rotate(45deg);

    top:19px;
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform:
    translateX(-50%)
    rotate(-45deg);

    top:19px;
}



/*Whatsapp Flotante*/

.whatsapp-float {
     position: fixed; /* fijo al viewport */
    bottom: 20px;     /* margen desde abajo */
    right: 20px;      /* margen desde la derecha */
    width: 60px;
    height: 60px;
    z-index: 9999;
    cursor: pointer;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* círculo */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.whatsapp-float:hover {
    transform: scale(1.1); /* efecto hover */
}




.creditos{
   text-align: center;
    margin-top:8px;
    font-size:.85rem;
    color:var(--muted);
}

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

.creditos a:hover{
    text-decoration:underline;
}

/* =========================
   TABLET (<= 900px)
========================= */
@media (max-width: 56.25rem) { /* 900px */



 /* NAV */
.navbar{
    position:relative;
}

/* aparece hamburguesa */
.menu-toggle{
    display:block;
}

/* ocultar botón contacto e iconos */
.acciones{
    display:none;
}

/* menú móvil */
.menu{
    position:absolute;
    top:100%;
    left:0;

    width:100%;
    background:white;

    flex-direction:column;
    align-items:center;
    gap:25px;

    padding:30px 0;

    border-bottom:1px solid #e2e8f0;

    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);

    transition:.3s ease;

    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* cuando abre */
.menu.active{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}



   
  /* HERO */
  .hero {
    padding: 5rem 1.25rem; /* 80px 20px */
    text-align: center;
  }

  .hero h1 {
    font-size: 1.75rem; /* 28px */
  }

  .hero p {
    font-size: 1rem; /* 16px */
  }

  .hero-botones {
    flex-direction: column;
    gap: 0.625rem; /* 10px */
  }

  /* GRID SERVICIOS */
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.9375rem; /* 15px */
  }

  /* NOSOTROS */
  .nosotros {
    flex-direction: column;
    text-align: center;
    gap: 1.875rem; /* 30px */
  }

  .foto {
    align-items: center;
  }

  .description {
    padding: 0 0.9375rem; /* 15px */
  }

  /* CONTACTO */
  .contacto {
    padding: 2.5rem 0.9375rem; /* 40px 15px */
  }

  .ubicacion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* 20px */
  }

  iframe {
    height: 300px; /* 🔒 se deja en px */
  }

  /* FOOTER */

  .footer{
        padding:50px 20px 20px;
    }


 .footer-contenido{
        grid-template-columns:1fr 1fr;
        gap:35px;
        text-align:center;
    }


      /* centra logo + nombre */
    .marca-header{
        justify-content:center;
    }

    /* centra texto */
    .marca p{
        max-width:100%;
        margin:auto;
    }

    /* redes centradas */
    .redes{
        justify-content:center;
    }

    /* CTA */
    .btn-footer{
        width:100%;
        max-width:220px;
    }
}

/* =========================
   MOBILE (<= 600px)
========================= */
@media (max-width: 37.5rem) { /* 600px */


  .logo span{
    font-size:13px;
}

.logo img{
    width:30px;
}

  /* HERO */
  .hero h1 {
    font-size: 1.375rem; /* 22px */
  }

  .hero p {
    font-size: 0.875rem; /* 14px */
  }

  /* GRID */
  .grid {
    grid-template-columns: 1fr;
  }

  /* CARDS */
  .card {
    height: 300px; /* 🔒 mejor dejar fijo */
  }

  /* FORM */
  .formulario {
    width: 100%;
  }

  /* MAPA */
  iframe {
    height: 250px;
  }

    .datos{
        grid-template-columns:1fr;
    }

   .footer-contenido{
        grid-template-columns:1fr;
        gap:30px;
    }

    .footer-col{
        width:100%;
    }

    .footer h4{
        margin-bottom:10px;
    }

    .footer-bottom{
        margin-top:25px;
        
        font-size:12px;
        line-height:1.5;
    }

    .marca-header{
        flex-direction:column;
        gap:8px;
    }

    .marca-header img{
        width:50px;
        height:50px;
    }



   .mensaje-enviado{

    padding:35px 25px;
}

.mensaje-enviado h1{

    font-size:1.6rem;
}

.logo-confirmacion{

    width:60px;
    height:60px;
}

.check-confirmacion{

    width:70px;
    height:70px;

    font-size:1.7rem;
}
}



/* =========================
   MOBILE CHICO (<= 400px)
========================= */
@media (max-width: 25rem) { /* 400px */

  /* ================= HERO ================= */

  .hero {
    padding: 3.75rem 0.9375rem; /* 60px 15px */
  }

  .hero h1 {
    font-size: 1.75rem; /* 20px */
    line-height:1.2;
  }

  .hero p {
    font-size:0.9rem; /* ⬅ subir de 13px a 14.4px */
    line-height:1.7;
  }

  /* ================= BOTONES ================= */

  .btn-principal,
  .btn-secundario {
     font-size:0.9rem; /* ⬅ subir apenas */
    padding:0.75rem 1rem;
  }

  /* ================= CARDS ================= */

  .card {
    height: 260px;
  }

  .mini-text,
  .problema,
  .contenido li{
    font-size:.85rem; /* ⬅ agregar */
 }

  .card-front h3,
  .card-back h3{
    font-size:1rem; /* ⬅ agregar */
 }

  /* ================= UBICACION ================= */

  .ubicacion {
    display: flex;
    flex-direction: column;
  }

  iframe {
    height: 220px;
  }

  .datos h3{
    font-size:1rem; /* ⬅ agregar */
 }

 .datos p{
    font-size:.9rem; /* ⬅ agregar */
 }


  /* ================= NOSOTROS ================= */

  .nosotros {
    padding: 40px 18px;
    gap: 25px;
    text-align: center;
    align-items: center;
  }

  .foto {
    width: 100%;
  }

  .foto img {
    width: 180px;
    height: 180px;
  }

  .foto h4 {
    font-size: 1rem;
    margin-top: 12px;
  }

  .foto p {
    font-size: 0.9rem;
    color: var(--muted);
  }

  .description {
    width: 100%;
    padding: 0;
  }

  .info {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .description p {
    max-width: 320px;
    margin: auto;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
  }

  /* ================= TRABAJO ================= */

  .trabajo {
    padding: 60px 18px;
  }

  .trabajo h2 {
    font-size: 1.5rem;
  }

  .trabajo .descripcion {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .btn-trabajo {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: auto;
  }


 /* ================= CONTACTO ================= */

  #contacto{
    scroll-margin-top: 50px;
}


  /* ================= FOOTER ================= */

.footer h4{
    font-size:1rem; /* ⬅ agregar */
}

.footer p,
.footer a{
    font-size:.85rem; /* ⬅ agregar */
}

.footer-bottom{
    font-size:.75rem; /* ⬅ agregar */
}

}