/* RESET, GENERALES Y CLASES BASE ====================================================================== */

:root {
  /* marca */
  --color-primary:#01142b;              /* azul negro LOGO  rgb(1, 20, 43) */
  --color-accent:#c29a4d;               /* naranja apagagdo LOGO */
  --color-accent-hover: #e2c079;

  /* fondos */
  --color-bg-main:#f8f7f6;      /* naranja claro beige muy clarito fondo STITCH */  
  --color-bg-white:#ffffff;

  /* textos */
  --color-text-main: #20282f;           /* otro azul muy oscuro paleta Picker */
  --color-text-muted: #646667;          /* gris paleta Picker */  

  --color-instagram: #0095f6;

  /* fonts */
  --font-primary: "Inter", sans-serif;
  --font-secondary: "Playfair Display", serif;  

  /* espacios */
  --fs-sm: clamp(0.8rem, 0.9vw, 0.9rem);
  --fs-base: clamp(0.95rem, 1.1vw, 1.05rem);
  --fs-md: clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-lg: clamp(1.8rem, 2.5vw, 2.2rem);
  --fs-hero: clamp(2.2rem, 5vw, 4.5rem);
}

html {
  font-size: 100%;
}

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

body {
  font-family: var(--font-primary);
  font-optical-sizing: auto;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);  
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);  
  scroll-behavior: smooth;
}

p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--color-text-main);   
  margin: 0;
  padding: 0;  
}

a {
  text-decoration: none;
}

.section {
  /* aire arriba y abajo */
  /* padding: 5rem 0; */
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.container-limit {
  max-width: 1600px;
  margin-inline: auto;
}

/* unifico los aires laterales*/
.section__header,
.services__grid,
.about__grid,
.employees__grid,
.contact__grid {
  padding-left: 3rem;
  padding-right: 3rem;
}

/* textos importantes secciones */
.services__heading,
.employees__heading,
.contact__item-heading {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: var(--color-primary);
}

.services__description,
.employees__description,
.contact__item-description {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-muted);
}


/* sistema de titulos ******************/
.section__header {
  text-align: start; 
  margin-bottom: 4rem;
  /* padding: 0 3rem; */
}

.section__eyebrow {
  display: block;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); 
  font-weight: 500;  
  color: var(--color-accent);    
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-secondary);
  color: var(--color-text-main);  
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__description {
  font-family: var(--font-secondary);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--color-text-main);
  line-height: 1.6;
}

.btn__primary {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;  
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 8px;
  box-shadow:
  0 8px 20px rgba(0,0,0,0.25),
  0 2px 6px rgba(0,0,0,0.2);
  transition: all .25s ease;
}

.btn__primary:hover {
  transform: translateY(-2px);
  box-shadow:
  0 14px 30px rgba(0,0,0,0.35);
}

.microtext {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

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

/* navbar personalizada */
.custom-navbar {
  background: transparent;
  transition:
  background-color .35s ease,
  box-shadow .35s ease;  
}

/* cuando sale del hero tiene color */
.navbar-scrolled {
  background: var(--color-primary);
  box-shadow:0 6px 25px rgba(0,0,0,0.25);
}

.custom-navbar .container {
  display: flex;
  align-items: center;
}

/* Altura vertical fluida */
.navbar {
  padding-top: clamp(0.8rem, 0.6rem + 0.5vw, 1.4rem);
  padding-bottom: clamp(0.8rem, 0.6rem + 0.5vw, 1.4rem);
}
   
/* Espaciado horizontal entre links (desktop) */
.navbar-nav {
  gap: clamp(1rem, 1vw, 2rem);
}

/* Links */
.navbar-nav .nav-link {
  font-size: clamp(0.8rem, 0.8rem + 0.4vw, 0.9rem);
  font-weight: 500;
  transition: color 0.2s ease;
  text-transform: uppercase;
  color: var(--color-bg-main);
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  /* para linea debajo del link */
  position:relative;
  padding-bottom: 4px;
}

.custom-navbar .nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;

  width:0;
  height: 2px;

  background: var(--color-accent);
  transition:width .25s ease;
}

.custom-navbar .nav-link:hover::after{
  width:100%;
}

/* Hover */
.custom-navbar .nav-link:hover {
  color: var(--color-accent-hover);  
}

/* Link activo */
.custom-navbar .nav-link[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;  
}

/* Marca */
.custom-navbar .navbar-brand {
  padding: 0;
}

.navbar-toggler {
    border: none;
}

/* pone las rayitas del menu hamburguesa en blanco */
.navbar-toggler-icon {
    filter: invert(1);
}

/* container logo y logo-texto marca */
.container__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.95rem, 1.2vw, 1.05rem);
}

.container__logo:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;  
}

.logotipo {
  width: clamp(2rem, 0.8vw, 2.5rem);
  width: 3rem;
  height: auto;
  transition: all 0.3s ease;  
}

.logo-texto {
  font-family: var(--font-secondary);
  font-weight: 300;  
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  /* font-size: 0.75rem; */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  transition: all 0.3s ease;  
}

.header {
  background:
  linear-gradient(
    to bottom,
    rgba(1,20,43,0.85) 0%,
    rgba(1,20,43,0.65) 8%,
    rgba(1,20,43,0.25) 18%,
    rgba(1,20,43,0) 35%
  ),
  linear-gradient(
    110deg,
    rgba(1,20,43,0.85) 0%,
    rgba(1,20,43,0.75) 35%,
    rgba(1,20,43,0.35) 65%,
    rgba(1,20,43,0.1) 100%
  ),
  url("../img/heroBackground.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: inset 0 0 140px rgba(0,0,0,0.35);

  /* altura del header controlado */
  /* height: clamp(600px, 85vh, 900px); */
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  margin-inline: auto;

  min-height: 100vh;
  width: 100%;  

  gap: clamp(2rem, 5vh, 4rem);  

}


.hero__title {
  font-family: var(--font-secondary);  
  /* font-size: clamp(4rem, 5vw, 5rem); */
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-bg-main);
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  max-width: 22ch;  
}

.hero__subtitle {  
  font-family: var(--font-secondary);  
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.4;  
  color: var(--color-bg-main); 
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);  
  max-width: 42ch;
}

.btn__hero-cta{
  background: var(--color-accent);
  color: var(--color-primary);       
}


/* SERVICES SERVICIOS ================================================================================ */

.section__services {
  padding-block: clamp(5rem, 8vw, 8rem);
  background-color: var(--color-bg-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.services__card {
  display: flex;
  flex-direction: column;  
  width: 100%;  
  padding: clamp(2rem, 2.5vw, 3rem);
  border: 1px solid rgba(0,0,0,0.08);  
  background-color: var(--color-bg-white);
  border-radius: 5px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.services__card:hover {
  border-color: rgba(0,0,0,0.15);  
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);  
}

.services__card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;  
}

.services__card-img {
  width: 100%;
  height: clamp(180px, 20vw, 220px);
  filter: brightness(0.9);  

  object-fit: cover;
  border-radius: 5px;
  /* border-top-left-radius: 5px;
  border-top-right-radius: 5px; */
}

.services__card:hover .services__card-img {
  filter: brightness(1);
}

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

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

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.75rem;
  align-items: center;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 0.9vw, 0.9rem);
  max-width: 650px;
}

.about__img {
  width: 100%;
  border-radius: 12px;
  filter: brightness(0.95);
}

.about__description {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.7;
  font-weight: 400;    
  color: var(--color-text-main);
}


/* PROFESIONALES EMPLOYEES ================================================================================ */

.section__employees {
  background-color: var(--color-bg-white);
}

.employees__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.employees__card {
  display: flex;
  flex-direction: column;  
  padding: clamp(2rem, 2.5vw, 3rem);    
  border-radius: 5px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.08);  
  text-align: center;    
}

.employees__card:hover {
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.employees__card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 2rem;
}

.employees__card-img {
  width: 100%;

  max-width: 220px;
  aspect-ratio: 1/1;
  object-fit: cover;

  margin: 0 auto;
  border-radius: 50%;

  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.employees__card:hover .employees__card-img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.employees__heading {
  margin-top: 1rem;
}

.employees__role {
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

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

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

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  /* ambas columnas con misma altura automaticamente */  
  align-items: stretch; 
}

/* COLUMNA IZQUIERDA */
.contact__left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* section de datos */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* agrupado de icono, circulo, titulo, descripcion */
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* ciruclo que contiene al icono svg */
.contact__icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(194, 153, 77, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__icon-wrapper img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.contact__item-description {
    margin: 0;
    padding: 0;
}

/* form ************************/

/* zonas para completar */
.contact__form input,
.contact__form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.7rem;
  margin-bottom: 1rem;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

/* agrupado de nombre y mail del form */
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn__contact {
  display: flex;
  justify-content: center; 
  align-items: center;     
  width: 100%;
  background: var(--color-accent);
  color: var(--color-bg-white);
}

/* derecha mapa */
.contact__map {
  height: 100%;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* gracias, solo se muestra cuando un cliente envia un mail **************************/
.section__thanks {
  background-color: var(--color-bg-main);  
  display: none;
}

#thanks:target {
  display: block;
}

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

.section__rrss {
  background-color: var(--color-bg-white); 
}

.redes__grid {
  padding: 0 6rem;
}

.redes__grid img{
  width:100%;
  border-radius: 16px;
}

.divisor__instagram {
  width: 70%;
  height: 1px;
  background-color: var(--color-text-muted);
  margin: 40px auto;
  opacity: 0.6;
}

.instagram__bar {
  max-width: 900px;
  margin: 3.1rem auto 0;
  
  display: flex;
  flex-direction: row;
  align-items: center;

  justify-content: center;
  gap: 2.5rem;
}

.instagram__bar img {
  width: 70px;
}

.instagram__bar strong {
  display: block;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--color-primary);
  margin-bottom: 5px;
}

.instagram__bar p {
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
  max-width: 350px;
}

.btn__instagram {
  background-color: var(--color-instagram);
  color: white;
  padding: 10px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  transition: 0.3s;
}

.btn__instagram:hover {
  opacity: 0.9;
}


/* =============================================================================
  footer
================================================================================ */

.site__footer {
  background-color: var(--color-primary);
}

.footer__tagline {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 400; 
  font-style: italic;
  letter-spacing: 0.5px;  
  opacity: 0.85;
  color: var(--color-bg-main);

  text-align: center;
  margin-bottom: 1.5rem;
  padding-top: clamp(0.8rem, 0.9vw, 0.9rem);  
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  opacity: 0.7;
  flex-wrap: wrap;
  margin: 0 2rem;
}

.footer__copy {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--color-bg-main);  
  font-weight: 300;
  text-align: center;
  padding-bottom: 1rem;  
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
}

.footer__social p {
  color: var(--color-bg-main);
}

.footer__social img {
  width: 18px;
}

.footer__social:hover {
  opacity: 1;
}

/* boton flotante whatsapp ******/
.whatsapp__float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  transition: transform 0.25s ease;
}

.whatsapp__icon {
  width: 100%;
  height: 100%;
  display: block;
}

.whatsapp__float:hover {
  transform: scale(1.12);
}


/* =============================================================================
  NAVBAR MEDIAQUERY
================================================================================ */

@media (max-width: 991px) {

  /* logo centrado en mobile */
  .navbar-brand {
    margin: 0 auto;
    padding-left: 0;    
  }
    
  /* Espaciado vertical en menú hamburguesa */
  .navbar-nav {
    gap: clamp(0.8rem, 0.9vw, 0.9rem);
    padding-top: 1rem;
    padding-bottom: 1rem;
    /* links a la derecha */
    align-items: flex-end;
    text-align: right;
  }

  /* Texto ligeramente mayor en mobile */
  .navbar-nav .nav-link {
    font-size: clamp(1rem, 0.9rem + 1vw, 1.2rem);
    padding: 0.5rem 0;
  }

  /* Fondo desplegable con blur */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* azul color-primary-dark con transparencia */    
    background-color: rgba(26, 46, 79, 0.527);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem;
  }

}

/* =============================================================================
  PANTALLA MUY GRANDES
================================================================================ */

@media (min-width: 2400px) {  
}

/* =============================================================================
  RESPONSIVE PANTALLAS MEDIANAS
================================================================================ */

@media (max-width: 1024px) {

  /* pasa a dos columnas */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
  }

}

/* =============================================================================
  RESPONSIVE TABLET
================================================================================ */

@media (max-width: 768px) {

  /* achico espacio arriba y abajo */
  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* header MEDIAQUERY -----*/    
  
  .hero__content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 8rem;
  }

  .hero__title,
  .hero__subtitle {
    max-width: 70%;    
  }

  .hero__title {
    /* font-size: clamp(1.8rem, 5.5vw, 2.3rem); */
  }

  .hero__subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  }

  .btn__hero-cta {
    padding: clamp(0.75rem, 0.9vw, 0.85rem) clamp(1.2rem, 1.8vw, 1.6rem);
  }

  /* services MEDIAQUERY ----- */  

  /* pasa a una columna */ 
  .services__grid {
    grid-template-columns: 1fr;
    justify-items: center;        
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .services__card {
    max-width: 100%;
    padding: 2rem 1.5rem;        
  }

  /* about MEDIAQUERY ----- */  

  .about__image {
    order: -1; /* imagen arriba */
  }

  .about__img {
    height: 220px;
    object-fit: cover;
  }

  /* employee MEDIAQUERY ----- */  
  .employees__grid {
    padding: 0 1.5rem;
  }

 /* contact MEDIAQUERY ----- */  

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

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


 /* redes rrss MEDIAQUERY ----- */  
  .instagram__bar {
    flex-direction: column;
    margin: 2rem;
    text-align: center;
  }

  /* footer MEDIAQUERY */

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

  /* pequeña adaptación mobile */
  .whatsapp__float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }
}  

/* =============================================================================
  RESPONSIVE MOBILE
================================================================================ */

@media (max-width: 390px) {


}