/* ------------------- RESET ------------------- */
:root {
    --primary-text-color: #222222b2; 
    --primary-background-color: #f2f1f1; 
    --primary-text-hover-color:#1d1d1db2;
}

@font-face {
  font-family: 'Basic-Light';
  src: url('/fonts/Basic-Light.woff2') format('woff2'),
       url('/fonts/Basic-Light.woff') format('woff'),
       url('/fonts/Basic-Light.ttf') format('truetype');
  font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Basic-Light, sans-serif;
    background: var(--primary-background-color, #f2f1f1);
    color: var(--primary-text-color, #222222b2);
    width: 100%;       
    margin: 0;
}

/* ------------------- HEADER ------------------- */
.header {
    top: 0;
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 0px 50px;
    background: #ffffff; /* header blanco */
    border-bottom: 1px solid #e0e0e0; /* línea sutil */
    z-index: 1000;
    position: sticky;
}

.header title{
    color: var(--primary-text-color, #222222b2);
    font-size: large;
}

.header title img{
    cursor: pointer;
    display: block;
}

.logo {
    font-weight: bold;
    color: var(--primary-text-color, #222222b2);
    font-size: larger;
}

.header nav a {
    color: #555555;
    margin-left: 25px;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.9;
    transition: color 0.3s;
}

.header nav a:hover {
    color: var(--primary-text-hover-color);
    font-weight: bolder;
}
/* NAV BASE */
.header nav {
  display: flex;
  align-items: center;
}

.header nav ul {
  display: flex;
  list-style: none;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 15px;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #555;
  margin: 4px 0;
  transition: 0.3s;
}

/* ------------------- SECTIONS ------------------- */
section {
    background: #ffffff;
    padding: 140px 80px;
    width: 80%;        /* El ancho del contenido */
    margin: auto;    
}

h2 {
    font-size: 22px;
    margin-bottom: 50px;
    color: var(--primary-text-color, #222222b2);
    text-align: center;
}

/* ------------------- GRID / CARDS ------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.card {
    background: #f9f9f9; /* fondo muy claro */
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* ------------------- HERO ------------------- */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    width: 100%;        /* El ancho del contenido */
    margin: auto;     
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1); /* sin oscurecer */
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-text-color, #222222b2);
}

.hero-text {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--primary-text-color, #222222b2);
}

/* ------------------- HERO NAV ------------------- */
.hero-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 3;
    padding: 0 30px;
    pointer-events: none;
}

.hero-nav button {
    background: rgba(0,0,0,0.05);
    border: none;
    color: var(--primary-text-color, #222222b2);
    font-size: 20px;
    cursor: pointer;
    pointer-events: auto;
    padding: 10px 15px;
    border-radius: 20px;
    transition: background 0.3s, color 0.3s;
}

.hero-nav button:hover {
    background: var(--primary-text-color, #222222b2);
    color: #ffffff;
}

/* ------------------- ANIMATIONS ------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}
/*------------------- CLIENTS ------------------- */
.clients {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.client-logo{
  overflow: hidden;
  border-radius: 15px;
}

.client-logo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 1.2s, box-shadow 0.2s;
}
.client-logo img:hover{
    transform: scale(1.1);
}
/* ---------------------- STUDIOS ------------------*/
.studios-grid {
    display: grid;
    gap: 60px;
}

.studio {
    display: flex;             /* Cambiamos de relative a flex */
    align-items: flex-start;    /* Alinea al inicio vertical */
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-background-color);      /* Opcional, para diferenciar */
}

.studio:hover{
    transform: scale(1.03);
}

.studio img {
    width: 40%;                 /* Imagen ocupa 40% del ancho */
    height: auto;               /* Altura automática */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.studio-info {
    padding: 20px;
    color: var(--primary-text-color, #222222b2);
    flex: 1;                    /* Ocupa el resto del espacio */
}

.studio-info h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
}

/* ------------------- SERVICES ------------------- */
.service-card:hover{
    transform: scale(1.03);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--primary-background-color);
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  align-items: center;
}

.service-card h3 {
  font-size: 16px;
  color: var(--primary-text-color, #222222b2);
  margin-bottom: 8px;
}

.service-card svg{
  width: 100%;
  max-width: 80px;
  height: auto;
  color: var(--primary-text-color, #222222b2);
  transition: color 1.2s;
  margin-bottom: 10px;
}

.icon-svg {
  width: 24px;
  height: 24px;
  color: inherit;
}

.icon-service:hover {
  color: var(--primary-text-hover-color);
}
/* ------------------- PORTFOLIO ------------------- */

.portfolio-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.portfolio-card img:hover{
    transform: scale(1.03);
}

.portfolio-card img {
  transition: transform 1.2s, box-shadow 0.2s;
  width: 100%;
  height: 340px; /* igual que studios */
  object-fit: cover;
}
.portfolio-card h3 {
  margin: 10px 0;
  color: var(--primary-text-color, #222222b2);
}

/* ------------------- COURSES ------------------- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
}
.course {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.course-overlay {
    position: absolute;
    inset: 0; /* equivalente a top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    justify-content: center;

    /*background: rgba(0,0,0,0.4);*/
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course:hover .course-overlay {
    opacity: 1;
}

.course img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course:hover img {
    transform: scale(1.03);
}

.course-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.85);
    color: var(--primary-text-color, #222222b2);
}

.course-info h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
}

/*----------------- FOOTER -----------------------*/
.footer {
  background: #f2f1f1;
  color: var(--primary-text-color, #222222b2);
  padding: 50px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h3,
.footer-col h4 {
  color: var(--primary-text-color, #222222b2);
  margin-bottom: 15px;
}

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

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

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-col a {
  display: block;
  color: var(--primary-text-color, #222222b2);
  text-decoration: none;
  margin-bottom: 6px;
  transition: 0.2s;
}

.footer-col ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.footer-col a:hover {
  color: #1d1d1db2;
}

.footer-col iframe {
  width: 100%;
  border-radius: 8px;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials svg {
  width: 24px;
  height: 24px; 
}

.footer-col svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  background: #fcfafa;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  color: var(--primary-text-color, #222222b2);
}

/*DETAIL VIEW*/
.detail-view {
  border-top: 50px solid var(--primary-background-color);
  position: relative;
  width: 80%;
  min-height: 100vh;
  background: #ffffff;
  margin: auto;    
}

.detail-content {
  max-width: 900px;
  margin: auto;
  position: relative;
}

.detail-view img {
  position: relative;
  width: 100%;
}

.hidden {
  display: none;
}

.detail-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.detail-close {
  background: #fff; 
  color: #9e9b9b;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: absolute;
  bottom: 20px;
  right: 20px;  
  display: inline-block;
}

.detail-contact {
  background: #fff; 
  color: #9e9b9b;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: absolute;
  bottom: 20px;
  right: 150px;
  display: inline-block;
  text-decoration:none;
}

.detail-close:hover {
  background:#9e9b9b;
  text-decoration: double;
  color: #f9f9f9;
}

.detail-contact:hover {
  background:#9e9b9b;
  text-decoration: double;
  color: #f9f9f9;
}

.info-btn {
    display: inline-block;
    border-radius: 30px;
    padding: 12px 24px;
    border: 1px solid  var(--primary-text-color, #222222b2);
    color: var(--primary-text-color, #222222b2);
    background: rgba(255,255,255,0.4);
    text-decoration: none;
    font-weight: bolder;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.info-btn:hover {
    background: rgba(5,5,5,0.4);;
    color: #ffffff;
}
/* WHATSAPP FLOTANTE*/
.wa-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* Bubble */
.wa-bubble {
  background: white;
  color: var(--primary-text-color, #222222b2);
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #dbd8d8; /* ✅ borde gris */
  position: relative;
  max-width: 250px;
  font-family: sans-serif;
  font-size: 14px;
  text-align: left;
}

/* WhatsApp icon */
.whatsapp-float {
  display: block;
  margin-top: 8px;
}
.whatsapp-float svg {
  width: 60px;
  height: 60px;
  cursor: pointer;
  fill: #5eee93;
}

.whatsapp-float svg:hover{
  width: 60px;
  height: 60px;
  cursor: pointer;
  fill: #41d176;
}

/* ANIMACIÓN */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ------------------- TABLET ------------------- */

@media (max-width: 1024px) {

  section {
    width: 90%;
    padding: 80px 20px;
  }

  h2 {
    font-size: 18px;
  }

  /* HEADER */
  .header {
    flex-direction: row;
  }

  .header nav ul {
    flex-wrap: wrap;
    align-items: center;
  }

  .header nav ul li a {
    margin: 0 10px;
    font-size: 14px;
  }

  /* HERO */
  .hero {
    min-height: 70vh;
  }

  .hero-overlay {
    padding: 30px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-nav button {
    font-size: 18px;
    padding: 10px 14px;
  }

  /* STUDIOS */
  .studios-grid {
    grid-template-columns: 1fr 1fr; /* 🔥 2 columnas en tablet */
    gap: 20px;
  }

  .studio {
    flex-direction: column;
  }

  .studio img {
    width: 100%;
  }

  /* SERVICES */
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 columnas */
    gap: 20px;
  }

  /* CLIENTS */
  .clients {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
  }

  .client-logo img {
    max-width: 140px;
  }

  /* COURSES / NEWS */
  .courses-grid {
    grid-template-columns: 1fr 1fr; /* 🔥 2 columnas */
    gap: 20px;
  }

  .course img {
    height: 240px;
  }

  /* PORTFOLIO */
  .portfolio-card img {
    height: 240px;
  }

  /* FOOTER */
  .footer-container {
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 columnas */
    gap: 30px;
  }

  .footer-col:nth-child(3) {
    grid-column: span 2;
    align-items: center;
  }

  /* DETAIL */
  .detail-view {
    width: 90%;
  }

  .detail-contact {
    right: 30px;
    bottom: 60px;
  }

  .detail-close {
    right: 30px;
  }

  .detail-view img {
    max-height: 70vh;
  }
  /*WHATSAPP FLOTANTE*/
  .wa-bubble {
    font-size: 13px;
    max-width: 220px;
    padding: 9px 12px;
  }
  .wa-bubble::after {
    right: 16px;
  }
  .whatsapp-float svg {
    width: 55px;
    height: 55px;
  }
}
/* ------------------- MOBILE ------------------- */
@media (max-width: 768px) {

  body {
    width: 100%;
  }

  section {
    width: 95%;
    padding: 100px 20px;
  }

  h2 {
    font-size: 16px;
    font-weight: bolder;
  }

  /* HEADER */
  .header {
    padding: 15px 20px;
    height: 80px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* o relative si no querés que quede fijo */
    top: 0;
    z-index: 1000;
  }

  .header nav {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header nav a {
    margin: 8px;
    font-size: 14px;
  }

  .menu-toggle {
    display: flex;
  }

  .header nav ul {
    position: absolute;
    top: 63px;
    left: 0;
    width: 100%;
    background: #ffffff;

    flex-direction: column;
    align-items: center;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.4s ease;
    
    z-index: 999;
  }

  .header nav ul.active {
    max-height: 400px;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
  }
  .header nav ul li {
    border-top: 1px solid #e0e0e0;
    width: 100%;
    padding: 4px 0;
  }

  .header nav ul a {
    font-size: 12px;
    margin: 0;
  }

  /* HERO */

  .hero {
    min-height: 60vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    transform: none; /* 🔥 sacamos el translate */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 20px;
    text-align: center;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-nav {
    top: 0;
    height: 100%;
    transform: none; /* 🔥 clave */

    display: flex;
    align-items: center; /* centra vertical real */
    justify-content: space-between;

    padding: 0 10px;
  }

  .hero-nav button {
    font-size: 16px;
    padding: 8px 12px;
  }


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

  .studio {
    flex-direction: column;
  }

  .studio img {
    width: 100%;
  }

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

  /* CLIENTS */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-logo img {
  max-width: 120px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
  /* COURSES / NEWS */
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .course img {
    height: 220px;
  }
  /* PORTFOLIO */
  .portfolio-card img {
    height: 220px;
  }

  /* FOOTER */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-col {
    align-items: flex-start;
  }

  .footer-col:nth-child(3) {
  grid-column: span 2;
  align-items: center;
}

.footer-col ul li a {
  display: flex;
  align-items: center;
  gap: 10px; /* espacio entre icono y texto */
}
.footer-col svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
  /* DETAIL */
  .detail-view {
    width: 95%;
  }

  .detail-contact {
    right: 20px;
    bottom: 70px;
  }

  .detail-close {
    right: 20px;
  }
  
  .detail-view img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}
/* WHATSAPP FLOTANTE*/
  .wa-bubble {
    display: none;
    font-size: 12px;
    max-width: 180px;
    padding: 8px 10px;
  }
  .wa-bubble::after {
    right: 12px;
  }
  .whatsapp-float {
    position: relative;
    right: 0px;  
  }
  .whatsapp-float svg {
    width: 50px;
    height: 50px;

  }
  .footer-col-only-desktop{
     display: none; 
  }
}