/* ********** Custom Properties ********** */
:root {

  /* 🎨 COLORES PRINCIPALES */
  --primary-color: #2563eb;
  --secondary-color: #0f172a;
  --accent-color: #fbbf24;

  /* 📝 COLORES DE TEXTO */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #ffffff;

  /* 🖼️ COLORES DE FONDO */
  --bg-main: #0f172a;
  --bg-main: #020617;
  --bg-surface: #1e293b;
  --bg-dark: #020617;

  /* 🛠️ BORDES Y ESTADOS */
  --border-color: #334155;
  --error: #ef4444;
  --success: #22c55e;

  /* ===== COLORES: WHATSAPP ===== */
  --wsp-color-bg: #25D366;
  --wsp-color-bg-hover: #1da851;
  --wsp-color-icon: #fff;
  --wsp-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  --wsp-shadow-hover: 0 6px 20px rgba(37, 211, 102, 0.6);

  /* Layout */
  --max-width: 1200px;
  --header-height: 20px;
}

/* ********** Reset ********** */
html {
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 16px;
  scroll-behavior: smooth;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text-color);
}

a {
  color: var(--link-color);
  transition: all 0.5s ease-out;
}

a:hover {
  opacity: 0.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.85rem; }
h6 { font-size: 0.7rem; }

img {
  max-width: 100%;
  height: auto;
}

p {
  line-height: 1.6;
}

/* ********** Utilidades ********** */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 255px;
  right: 80px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--wsp-color-bg); 
  color: var(--wsp-color-icon);
  box-shadow: var(--wsp-shadow);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: var(--wsp-color-bg-hover);
  transform: scale(1.1);
  box-shadow: var(--wsp-shadow-hover);
}
@keyframes pulse-whatsapp {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.whatsapp-float {
  animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-float svg {
  fill: currentColor;
}

.section {
  padding-top: 4rem;
  padding-bottom: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

section[id] {
  scroll-margin-bottom: var(--header-height);
  min-height: 100vh;
}

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



/* ********** Barra navegacion ********** */
.navbar {
  background: var(--bg-dark);
  color: var(--text-light);
  border-bottom: 2.5px solid var(--border-color);

  top: 0;
  z-index: 999;
  padding: 1rem;
  width: 100%;
  left: 0;
  position: fixed;
  z-index: 999;
  padding: 0.8rem 1rem;
}

.navbar > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Estado normal: ☰ */
.menu-icon::before {
  content: "\2630"; /* Unicode ☰ */
}

/* Cuando el menú está desplegado: ✖ */
.menu-toggle:checked + .menu-icon::before {
  content: "\2715"; /* Unicode ✖ */
}

.menu {
  display: none;
  flex-direction: column;
  background: var(--bg-dark);
  position: absolute;
  top: 100%;             
  left: 0;
  width: 100%;
}

.menu a {
  padding: 1rem;
  padding-left: 2rem;
  text-decoration: none;
  color: var(--text-light);
  text-align: left;
}

.menu a:hover {
  background: var(--color-accent);
}

.menu-toggle:checked ~ .menu {
  display: flex;
}

/* Desktop: desde 1024px en adelante */
@media (min-width: 1024px) {
  .navbar {
    top: 0;
    bottom: auto;
    
  }
  .navbar > .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }
  .logo {
    position: static;             
  }
  .menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
  }
  .menu a {
    border: none;
    padding: 0 1rem;
  }
  .menu-icon {
    display: none;                 
  }
} 

/* ********** HERO ********** */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-light);
  background:
    linear-gradient(rgba(17, 24, 39, .75), rgba(17, 24, 39, .75)),
    url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
}

.hero .container {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 35rem;
}

.hero-tag {
  color: var(--accent-color);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.1;
}

.hero-description {
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem
}

.btn {
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  text-align: center;
  font-weight: 700;
  transition: .3s;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--secondary-color);
}

.btn-secondary {
  background: var(--accent-color);
  color: var(--text-main);
  color: #111827;
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

.btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

/* ********** CARRUSEL ********** */

.hero-carousel {
  background: var(--secondary-color);
  overflow: hidden;
  padding: 1.5rem 0;
}

.hero-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: scroll 22s linear infinite;
}

.hero-track span {
  color: var(--text-light);
  font-weight: 900;
  font-size: large;
  white-space: nowrap;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ********** TABLET ********** */

@media (min-width: 768px) {

  .hero .container {
    align-items: center;
  }

  .hero-buttons {
    flex-direction: row;
  }

}

/* ********** DESKTOP ********** */

@media (min-width: 1024px) {

  .hero .container {
    align-items: center;
  }

  .hero-content {
    width: 85%;
    max-width: 45rem;
    gap: 0.5rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }

  .btn {
    width: 12rem; 
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    border-radius: .5rem;
    font-weight: 700;
  }

}

/* ********** ABOUT ********** */
.about {
  background: var(--bg-main);
}

.about .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about .about-tag {
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent-color);
  margin: 0;
}

.about h2 {
  color: var(--text-main);
  font-size: clamp(2rem,5vw,3rem);
}

.about p {
  color: var(--text-muted);
  line-height: 1.7;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 0;
  list-style: none;
}

.about-list li {
  color: var(--text-main);
  font-weight: 600;
  color: var(--accent-color);
}

/* CARD EXPERIENCIA */
.experience-card {

  background: var(--bg-surface);
  color: var(--text-light);

  padding: 2rem;
  border-radius: 1rem;

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

  text-align: center;
  
}

.experience-card strong {
  font-size: 6rem;
  color: var(--accent-color);
}

.experience-card span {
  font-size: 1.2rem;
}

.experience-services {
  margin-top: 1.5rem;
  width: 100%;
  text-align: left;
}

.experience-services p {
  color: var(--bg-dark);
  background-color: var(--accent-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
} 

/* TABLET */
@media (min-width: 768px) {

  .about-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .about-list li {
    flex: 1 1 calc(50% - 1rem);
  }

}

/* DESKTOP */
@media (min-width: 1024px) {
  .about .container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .about-content {
    width: 60%;
  }

  .about-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .about-list li {
    flex: 1 1 calc(50% - 1rem);
  }

  .experience-card {
    width: 40%;
    min-height: 350px;
  }

}

/* ********** SERVICES ********** */
.services {
  background: var(--bg-dark);
}

.section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.section-header h2 {
  color: var(--text-light);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}


.section-header p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}


.services .section-tag {
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent-color);
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  margin: 0;
}

/* CARDS */
.services-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.service-card {
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.service-card h3 {
  color: var(--accent-color);
  margin-bottom: .8rem;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* TABLET */
@media (min-width: 768px) {
  .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .services-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 1 1 calc(50% - 1rem);
  }
}


/* DESKTOP */

@media (min-width: 1024px) {

  .service-card {

    flex: 1 1 calc(33.333% - 1rem);

  }

}

/* ********** CONTACT ********** */

.contact {
  background: var(--bg-main);
}

.contact .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-content {
  background: var(--bg-dark);
  border-radius: 1rem;
}

.contact .contact-tag {
  color: var(--accent-color);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

.contact h2 {
  color: var(--text-light);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

.contact p {
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  text-align: center;
  font-weight: 700;
}

.btn-whatsapp {
  background: var(--wsp-color-bg);
  color: var(--bg-dark);
  box-shadow: var(--wsp-shadow);
}

.btn-whatsapp:hover {
  background: var(--wsp-color-bg-hover);
}

.btn-call {
  background: var(--accent-color);
  color: var(--bg-dark);
}

.contact-info {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 1rem;
}

.contact-info h3 {
  color: var(--accent-color);
  text-align: center;
}

.contact-info p {
  color: var(--text-main);
} 

/* TABLET */

@media (min-width: 768px) {

  .contact-buttons {

    flex-direction: row;

  }


  .btn {

    width: 12rem;

  }

}


/* DESKTOP */

@media (min-width: 1024px) {

  .contact .container {

    flex-direction: row;
    align-items: stretch;

  }


  .contact-content {

    width: 65%;

  }


  .contact-info {

    width: 35%;

  }

}

/* ========== FOOTER ========== */
.footer{
  position:relative;
  background-color:var(--bg-dark);
  border-top:1px solid var(--border-color);
  padding:3rem 0 1.5rem;
}

/* Línea de acento superior */
.footer::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Grilla de columnas */
.footer-grid{
  display:flex;
  flex-direction:column;
  gap:2.5rem;
}

.footer-col{
  display:flex;
  flex-direction:column;
  gap:.75rem;
}

ul.footer-list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:.25rem;
}

.footer-list li,
.footer-list a{
  display:block;      
  min-height:44px;        
}

.footer-list a{
  position:relative;
  width:100%;
  text-decoration:none;
}

.footer-list a:hover,
.footer-list a:focus-visible{
  color:var(--accent-color);
  padding-left:5px;
}

/* --- Marca --- */
.footer-logo{
  color:var(--text-light);
  font-size:1.5rem;
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1;
  text-decoration:none;
}
.footer-logo span{ color:var(--accent-color); }

.footer-text{
  margin:0;
  color:var(--text-muted);
  font-size:.95rem;
  line-height:1.7;
  max-width:36ch;
}

/* --- Títulos de sección --- */
.footer-title{
  margin:0 0 .25rem;
  padding-bottom:.6rem;
  position:relative;
  color:var(--text-main);
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.14em;
}


/* --- Redes --- */
.footer-social{
  display:flex;
  gap:.6rem;
  margin-top:.5rem;
}
.footer-social a{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--text-muted);
  border:1px solid var(--border-color);
  border-radius:50%;
  transition:color .25s ease, background-color .25s ease,
             border-color .25s ease, transform .25s ease;
}
.footer-social a:hover{
  color:var(--text-light);
  background-color:var(--primary-color);
  border-color:var(--primary-color);
  transform:translateY(-3px);
}
.footer-social svg{
  width:17px;
  height:17px;
  fill:currentColor;
}

/* --- Barra inferior --- */
.footer-bottom{
  margin-top:3rem;
  padding-top:1.25rem;
  border-top:1px solid var(--border-color);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.75rem;
  text-align:center;
}
.footer-bottom p{
  margin:0;
  color:var(--text-muted);
  font-size:.85rem;
}
.footer-bottom span{ color:var(--accent-color); }

.footer-legal{
  display:flex;
  gap:1.5rem;
}
.footer-legal a{
  color:var(--text-muted);
  font-size:.85rem;
  text-decoration:none;
  transition:color .25s ease;
}
.footer-legal a:hover{ color:var(--accent-color); }

/* Focus accesible */
.footer a:focus-visible{
  outline:2px solid var(--accent-color);
  outline-offset:3px;
  border-radius:4px;
}

/* ---- Tablet (≥768px): 2 filas ---- */
@media (min-width:768px){
  .footer-grid{
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:flex-start;
    gap:2rem;
  }
 /*  .footer-col--brand{ flex-basis:100%; } */

  .footer-bottom{
    flex-direction:row;
    justify-content:space-between;
    text-align:left;
  }
}

/* ---- Desktop (≥1024px): 3 columnas ----
   (incluye tu media query original) */
@media (min-width:1024px){
  .footer{ padding:2rem 0 2rem; }
  .footer-logo{ font-size:1.7rem; }
  .footer-text{ font-size:1.05rem; }

  .footer-grid{
    flex-wrap:nowrap;
    gap:3rem;
  }
  .footer-col--brand{ flex:1.4 1 0; }
  .footer-col{ flex:1 1 0; }
}