/*

TABLE OF CONTENTS

  0. Colores
  1. General Styles
    1.1. Background Colors
    1.2. Fonts
    1.3. Boton Whatsapp
  2. Navigation
  3. Contacto
  4. Formulario
  6. Media Queries
    6.1. Media Query for Logos

*/


/* ############ 0. Colores ############ */

:root {
  --azul: #303F4B;
  --azul2: #1A577A;  
  --naranjo: #F36E42;
  --gris: #697379;
  --gris2: #DBDCDA;
  --negro: #141415;
}

/* ############ 1. General Styles ############ */

/* ############ 1.1 Fonts ############ */

:root {
  --biggest: 700 32px/1.2 'Space Grotesk', serif;
  --h1: 700 28px/1.2 'Space Grotesk', serif;
  --h2: 700 20px/1.2 'Space Grotesk', serif;
  --h3: 500 16px/1.2 'Lato', sans-serif;
  --p: 400 15px/1.2 'Lato', sans-serif; 
  --small: 400 14px/1.2 'Lato', sans-serif;
  --smaller: 400 12px/1.2 'Lato', sans-serif;
}


html, body {
    margin: 0 auto;
    scroll-behavior: smooth;
}

body {
  align-self: center;
}

.boton {
  font: var(--p);
  color: white;
  padding: 15px 30px;
  max-width: max-content;
  cursor: pointer;
}

.center {
  text-align: center;
}
/* ############ 1.1. Background Colors ############ */

.fondo-azul {
  background-color: var(--azul);
  color: white;
}

.fondo-naranjo {
  background-color: #F36E42;
  color: white;
}

.fondo-azul2 {
  background-color: var(--azul2);
  color: white;
}



/* ############ 1.2. Font Styles ############ */


.menu-item label p {
  font: var(--p);
  color: white;
  margin: 0;
}

a {
  /* font:var(--p); */
  text-decoration: none;
  /* color: white; */
}

.titulo {
  font:var(--biggest)
}

h1, .fh1 {
   font: var(--h1);
}

h2, .fh2 {
  font: var(--h2);
  margin: 0;
}

h3, .fh3 {
   font: var(--h3);
   margin: 0;
}

p, li, .fp {
  font: var(--p);
}

.line {
  width: 40px;
  height: 1px;
  background-color: var(--azul2); /* Match your dark blue */
  margin: 0 auto 20px; 
}

.antetitulo {
  font: var(--h3);
  font-family: 'Space Grotesk', serif;
  color: var(--azul2);
  margin: 0 auto;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.naranjo {
  color: var(--naranjo);
}

.azul {
  color: #034562;
}

.bold{
  font-weight: 700;
  font-family: 'Space Grotesk', serif;
}


/* ############ 1.3. Boton Whatsapp ############ */

.container {
  position: relative;
}

.button-wrapper {
  position: absolute;
  right: 55px;
  z-index: 20;
}

.button {
  position: fixed;
  cursor: pointer;
  bottom: 10px;
  width: 4rem;
  padding: 0.5rem 10px 0.5rem 1rem;
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
  background-color: var(--azul2);
}

.boton-wapp:hover {
  filter: invert(1) invert(17%) sepia(95%) saturate(2411%) hue-rotate(181deg) brightness(85%) contrast(93%);
  transition: all .2s;
}

/* ############ 1.4. Efectos fade ############ */
.fade div, .fade li, .fade tr  {
  visibility: hidden;
  opacity: 0;
  transition: all .5s ease-in-out;
}

.fade div.in-view, .fade li.in-view, .fade tr.in-view  {
  transform: none;
  visibility: visible;
  opacity: 1;
}

.fadeup {
  visibility: hidden;
  opacity: 0;
  position: relative;
  top: 30px;
  transition: opacity 1s, top 1s, visibility 1s;
  /* transition: all 1s; */
  }

.fadeup.in-view {
  top: 0px;
  transform: none;
  visibility: visible;
  opacity: 1;
}

.fadelay {
  opacity: 0;
  transition: opacity 1s, visibility 1s;
  transition-delay: .2s;
}

.fadelay.in-view {
  opacity: 1;
}

.fadeleft {
  visibility: hidden;
  opacity: 0;
  position: relative;
  left: -100px;
  transition: left 1s, opacity 1s, visibility 1s;
}


.fadeleft.in-view {
  left: 0px;
  transform: none;
  visibility: visible;
  opacity: 1;
}

/* ############ 2. Navigation ############ */

.vector {
display: block;
margin-right: 50px;
justify-items: right;
}

  /* --- General & Wrapper Styles --- */


.navWrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transition: all 0.5s;
  box-sizing: border-box;
}

.navWrap.scrolled {
  position: fixed;
  background-color: var(--azul);
}

.logo {
  max-width: 100px;
  height: auto;
}

/* --- Mobile Toggle (Hamburger) & Checkbox Logic --- */
.navToggle {
  display: none; /* Hide the actual checkbox */
}

.navToggleLabel {
  display: block; /* Show hamburger on mobile */
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1; /* Must be higher than the nav */
}

.closeMenu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 50px;
  font-weight: 500;
  font-family: 'Space Grotesk', serif;
  color: var(--azul2);
  cursor: pointer;
  z-index: 999;
}


/* Show the mobile nav when checkbox is checked */
#navToggle:checked ~ .main-nav {
  transform: translateX(0);
}


/* --- Base (Mobile) Navigation Styles --- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: white;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  width: 90%;
}

.main-nav .nav-item {
  margin: 20px 0;
}

.main-nav .nav-item a,
.main-nav .services-label {
  cursor: pointer;
  margin-right: 10px;
  align-items: center;
  color: var(--azul2);
  font: var(--h1);
}


/* --- Mobile Accordion for "Servicios" --- */
.servicesToggle {
  display: none; /* Hide the sub-menu checkbox */
}

.dropdown-menu {
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.dropdown-menu li {
  margin: 10px 0;
}

.main-nav .dropdown-menu li a {
  font: var(--h2)
}

/* Expand the accordion when its checkbox is checked */
#servicesToggle:checked ~ .dropdown-menu {
  max-height: 200px; /* Adjust as needed */
}

/* MEDIA QUERIES FOR NAV */

@media screen and (min-width: 700px) {

/* Hide mobile-only elements */
  .navToggleLabel,
  .closeMenu,
  .servicesToggle, /* Hide the checkbox on desktop */
  .services-label { /* Hide the label on desktop */
    display: none;
  }
  
  /* Reset nav container styles */
  .main-nav {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    transform: none;
    transition: none;
    display: block; /* Required to show the nav */
  }

  .main-nav .nav-item a, .main-nav .services-label {
    font: var(--p);
  }

  .main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between nav items */
    width: auto;
  }

  .main-nav .nav-item {
    margin: 0 20px;
    align-self: flex-start;
  }


  .main-nav .nav-item a:hover {
    text-decoration: underline;
  }
  .main-nav .nav-item.dropdown:hover {
    text-decoration: none;
  }

  .main-nav .nav-item > a {
    color: white; 
    font: var(--p);
    position: relative;
    padding-bottom: 5px; 
  }


  /* --- Desktop Dropdown for "Servicios" --- */
  .dropdown {
    position: relative; /* Context for the absolute dropdown */
  }
  
  /* The nav item needs a link to be visible on desktop */
  .dropdown::before {
    content: 'Servicios';
    color: white;
    font:var(--p);
    cursor: pointer;
    position: relative;
  }
  
  /* Apply the same hover effect as other links */
  .dropdown::after {
    content: '▼'; /* Down arrow indicator */
    font: var(--smaller);
    margin-left: 5px;
  }


  .dropdown .dropdown-menu {
    display: none; /* Hide by default */
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0px;
    padding: 10px 0 0;
    min-width: 200px; /* Give it some width */
    max-height: none; /* Override mobile style */
    overflow: visible; /* Override mobile style */
    z-index: 110;
  }

    .main-nav .dropdown-menu li {
      margin: 0;
    }

  .main-nav .dropdown-menu li a {
    background-color: var(--azul);
    margin: 0;
    padding: 10px;
    font: var(--p);
    color: white;
    display: block;
    text-align: left;
  }
  
  .dropdown-menu a:hover {
      background-color: var(--naranja);
  }

  /* Show the dropdown on hover of the parent .dropdown item */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
   .navWrap {
    padding: 15px 40px; /* Add more horizontal padding on desktop */
  }


}

  /* HERO HEADER */

.hero-container picture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(55, 65, 77, 0.4);
  z-index: 2;
}

.hero {
  z-index: 3;
}

.hero a {
  font: var(--p);
}


.hero-container {
position: relative;
width: 100%;
margin: 0 auto;
height: 100vh;
}

.hero-text {
left: 0;
padding: 20px;
color: white;
width: 100%;
box-sizing: border-box;
}

.hero-text h1 {
font: var(--h1);
margin: 0 0 10px;
}

.hero-text p {
font: var(--h3);
margin: 0 0 15px;
}

.btn-conocenos {
display: inline-block;
background-color: var(--naranjo);
color: white;
padding: 16px 24px;
text-decoration: none;
margin: 20px auto;
min-width: max-content;
}

header img {
max-width: 100%;
display: block;
object-fit: cover;
}

header .hero {
color: white;
margin: 40px 20px 50px 0px;
align-items: center;
position: absolute;
bottom: 20px;
width: 100%;
}

header .hero .titulo {
margin: 0 20px 20px 20px;
font: var(--biggest);
line-height: 100%;
}

.hero .fh3 {
margin: 0 40px 0 20px;
font-weight: 700;
}

header .hero .bajada {
margin: 0 20px;
}

header .hero .celeste {
line-height: 80%;
}

header picture img {
width: 100%;
height: 100%;
object-fit: cover;
}


/* ############ 3. Contacto ############ */

.contacto a {
color: white;
}

.contacto {
  /* margin: 50px 0 0 0; */
  padding-top: 60px;
  text-align: left;
}

.contacto .fh1 {
  color: white;
  margin-bottom: 30px;

}

.contacto p:first-of-type {
  margin-bottom: 25px;
}

.contacto p {
  margin: 10px 0;
}

.contacto .vector {
  margin: 40px 0 20px;
}



.contacto a {
  text-decoration: underline;
  text-align: left;
  margin: 0;
}

.datos-contacto {
  padding: 40px;
}


/* ############ 4. Formulario ############ */

.formulario {
  margin: 0 auto;
  padding: 50px 40px;
  max-width: 600px;
  background-color: var(--naranjo);
  color: white;
}

form {
  width: 100%;
  display: grid;
  justify-items: center;
  max-width: 600px;
  justify-self: center;
}

input:focus, textarea:focus{
  outline: none;
  border-bottom: 2px solid white;
}


input, textarea {
  width: 90%;
  font:var(--p);
  background-color: inherit;
  padding-bottom: 10px;
  padding-top: 20px;
  border: none;
  border-bottom: 1px solid white;
  color: white;
}


::placeholder {
  color: #ffffff;
  font: var(--p);
  opacity: 0.8;
}

#submit {
  margin-top: 22px;
  max-width: 50%;
  background: var(--azul);
  padding: 15px 15px;
  justify-self: center;
  transition: background .5s;
  border: none;
}

/* ############ 5. Footer ############ */

footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  padding: 30px 20px;
  background-color: var(--azul);
  color: white;
  /* gap: 20px; */
}

footer a {
  color: white;
  font: var(--p)
}

footer div:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}


footer div:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}


footer div:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

footer div:nth-child(4) {
  grid-column: 2;
  grid-row: 1 / 4;
}

.logofooter a{
  margin: 0;
  justify-self: self-end;
}

footer .footertitulo {
  color: var(--naranjo);
  font: var(--h3);
  letter-spacing: 0.04em;
  margin: 20px 0 10px;
}

footer div a {
  display: block;
  margin: 15px 0;
}

footer .logo {
  max-width: 150px;
  height: auto;
}


.copyright {
  background: var(--azul);
  text-align: center;
}

.copyright p {
  color: white;
  margin: 0 auto;
  font: var(--smaller);
  padding: 30px 0;
  border-top: 1.5px solid white;
  max-width: 80%;
  text-align: center;
  font-weight: 400;
}

/* ############ 6. Media Queries ############ */

/* ############ FOR TABLET ############ */


@media screen and (min-width: 768px) {

:root {
  --biggest: 700 55px/1.2 'Space Grotesk', serif;
  --h1: 700 36px/1.2 'Space Grotesk', serif;
  --h2: 500 24px/1.2 'Space Grotesk', serif;
  --h3: 500 20px/1.2 'Space Grotesk', serif;
  --p: 400 16px/1.2 'Lato', sans-serif; 
  --small: 400 14px/1.2 'Lato', sans-serif;
  --smaller: 400 13px/1.2 'Lato', sans-serif;
}

.navWrap .logo {
  max-width: 150px;
}

.navWrap {
  padding: 0 40px;
}

header .hero .titulo {
  max-width: 800px;
  margin: 20px 100px;
}

.hero .fh3 {
margin: 0px 40px 80px 100px;
max-width: 700px;
}


.vector img {
width: auto;
height: 90px;
}


.formulario {
  background-color:unset;
}

.contacto {
  display: flex;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 100,0 100,100 0,100' fill='%23303F4B'/%3E%3Cpolygon points='55,0 100,0 100,100 25,100' fill='%23F36E42'/%3E%3C/svg%3E");
  padding: 60px 0;
}

.contacto .vector img {
  transform: rotate(-90deg);
  margin-left: 40px;
}

.datos-contacto, .formulario {
  flex: 1
}

.datos-contacto {
  margin-left: 5%;
  max-width: 500px;
}

footer {
  display: flex;
  justify-content: space-evenly;
}

footer .logo {
  max-width: 200px;
}

br {
  display: none;
}

br.fixed {
  display: block;
}
}

/* FOR SMALL DESKTOP */

@media screen and (min-width: 1280px) {



}


/* ############ 6.1. Media Queries for 1920px ############ */


@media screen and (min-width: 1920px) {

:root {
  --biggest: 700 70px/1.2 'Space Grotesk', serif;
  --h1: 700 46px/1.2 'Space Grotesk', serif;
  --h2: 500 31px/1.2 'Space Grotesk', serif;
  --h3: 500 26px/1.2 'Space Grotesk', serif;
  --p: 400 20px/1.2 'Lato', sans-serif; 
  --small: 400 18px/1.2 'Lato', sans-serif;
  --smaller: 400 16px/1.2 'Lato', sans-serif;
}

header .hero .titulo {
  max-width: 900px;
}

  .main-nav .nav-item a, .dropdown::before, .main-nav .dropdown-menu li a  {
  font: var(--p);
  font-family: 'Lato', sans-serif;
}

.main-nav .dropdown-menu li a {
  min-width:200px;

}

#logofooter, .logofooter, .logofooter img {
  width: 250px;
  max-width: 100%;
}

}