* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: Arial, sans-serif;
  color: #333;
}

body {
  background: white;
  background-size: cover;
}



/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #d8bc6fce 0px,
    #d8bc6fce  20px,
    #ffffff 20px,
    #ffffff 100%
  );
  color: rgb(20, 19, 19);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 50px 40px;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
  
}

header.scrolled {
  background: linear-gradient(
    to bottom,
    rgba(243, 221, 122, 0.7) 0px,       /* barra roja semi-transparente */
    rgba(243, 221, 122, 0.7) 20px, 
    rgba(255, 255, 255, 0.7) 20px,  /* franja blanca semi-transparente */
    rgba(255, 255, 255, 0.7) 100%
  );
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



.logo {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 80px;
}


.logo img {
  height: 70px;  /* o el tamaño que quieras */
  width: auto;
   transform: scale(2.8);
  
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: 40px;
  align-items: flex-start;
 
  
  
}

nav ul li a {
  color:#070707;
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.3s;
  margin-right: 30px;
  
}
.redes-sociales.desktop {
  position: absolute;
  bottom: 5px;      /* margen desde abajo */
  right: 40px;       /* margen desde la derecha */
  display: flex;
  gap: 15px;
  font-size: 10px;

}

.redes-sociales.desktop i {
  font-size: 20px; /* Tamaño de los íconos */
      /* También podés cambiar el color desde acá */
}
nav ul li a:hover {
  color: #4692e9; /* efecto hover */
}



@media (min-width: 768px) {
  .menu-principal {
    margin-left: 700px;
    
  }
}



/* Hero base */
.hero {
  background: linear-gradient(to left, rgba(8,64,128,0) 5%, rgba(8,64,128,1)),
              url("../img/estudio-1 .JPG") no-repeat center center;
  background-size: cover;
  background-position: center;
  height: 95vh;
  position: relative;
  color: white;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 80px;
  text-align: left;
  margin-top: 70px;
}

/* ✅ Imagen alternativa para celular */
@media (max-width: 768px) {
  .hero {
    background: linear-gradient(to left, rgba(8,64,128,0.2) 5%, rgba(8,64,128,0.6)),
                url("../img/estudio-2.jpg") no-repeat center center;
    background-size: cover;
    background-position: center;
    padding: 0 20px;
    justify-content: center;
    text-align: center;
  }

 
}




/* Oscurece la imagen */
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 0;
}

/* Contenido del hero por encima */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px; /* limita ancho del texto */
}

/* Título hero */
.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

/* Párrafo hero */
.hero p {
  font-size: 1.3em;
  margin-bottom: 50px;
}

/* Botón */
.btn-contact {
  background-color: #ffe18dce;
  color: #333;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  display: inline-block;
}

.btn-contact:hover {
  background-color: #e6b800;
}

/* RESPONSIVE para HERO */
@media (max-width: 768px) {
  .hero {
    justify-content: center; /* centramos el texto */
    padding-left: 20px;
    padding-right: 20px;
    height: auto;
    min-height: 60vh;
    text-align: center;
    margin-top: 70px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 1.8em;
    margin-left: 0;
    white-space: nowrap;
    text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
    
  }

  .hero p {
    font-size: 1em;
    margin-left: 0;
    margin-top: 15px;
  }

  .btn-contact {
    margin-left: 0;
    padding: 12px 20px;
    font-size: 1em;
  }
}


.servicios {
  padding: 50px 20px;
  background: linear-gradient(
  to bottom,
  rgba(8, 64, 128, 1) 0%,    /* azul totalmente opaco arriba */
  rgba(8, 64, 128, 0.8) 30%, /* un poco más transparente */
  rgba(8, 64, 128, 0.6) 60%, /* más transparente */
  rgba(8, 64, 128, 0.4) 100% /* muy transparente abajo */);
  text-align: center;
  margin-top: 100px;
  margin-left: 50px;
  margin-right: 50px;
  border-radius:10px;
  border: 3px solid #c9b786; 
}

.servicios h2 {
  font-size: 2em;
  margin-bottom: 80px;
  color: #e9edf0;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.servicio {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.servicio:hover {
  transform: translateY(-5px);
}

.servicio h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #56595c;
}

.servicio p {
  font-size: 1em;
  color: #555;
}


.porque-elegirnos {
  padding: 50px 20px;
  background: linear-gradient(
  to bottom,
  rgba(8, 64, 128, 1) 0%,    /* azul totalmente opaco arriba */
  rgba(8, 64, 128, 0.8) 30%, /* un poco más transparente */
  rgba(8, 64, 128, 0.6) 60%, /* más transparente */
  rgba(8, 64, 128, 0.4) 100% /* muy transparente abajo */
);
  margin-top: 100px;
  margin-left: 50px;
  margin-right: 50px;
  border-radius:10px;
  text-align: center;
  margin-bottom: 100px;
  border: 3px solid #c9b786; 
}

.porque-elegirnos h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #f3f6f8;
}

@media (max-width: 768px){
  .porque-elegirnos h2 {
    font-size: 1.6em;
    white-space: nowrap;
  }

}

.razones {
  max-width: 800px;
  margin: 0 auto;
  text-align: left; /* para que el texto quede alineado a la izquierda */
}

.razon {
  margin-bottom: 20px;
}

.razon h3 {
  font-size: 1.3em;
  margin-bottom: 5px;
  color: #f3f6f8;
  text-align: center;
  margin-bottom: 15px;
}

.razon p {
  font-size: 1em;
  color: #faf8f8;
  text-align: center;
  margin-bottom: 30px;
}

.contenido-oculto {
  display: none;
}

.contenido-visible {
  display: block;
}

.titulo-elegirnos {
  cursor: pointer;           /* cambia el cursor a mano */
  transition: color 0.3s;    /* suaviza el cambio de color */
}

.titulo-elegirnos:hover {
  color: #f1e2b8ce;            /* color dorado al pasar el mouse */
}

/* Al inicio está plegado */
.contenido-plegado {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1.0s ease; /* duración y efecto suave */
}

/* Al activar, se despliega */
.contenido-visible {
  max-height: 1000px; /* suficiente para cubrir el contenido */
}


.contacto {
  background: url("../img/estudio-1 .JPG") no-repeat center center;
  background-size: cover;
  height: 95vh;
  margin: 100px 50px 50px 50px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 3px solid #c9b786; 
}

/* Overlay marrón semi-transparente */
.contacto-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(8, 64, 128, 0.6);
 /* marrón con transparencia */
  border-radius: 10px;
  z-index: 0;
}

/* Contenido encima del overlay */
.contacto-content {
  position: relative;
  z-index: 1;
  padding: 30px;
  color: #fff;
  /* background: transparent; opcional */
}

/* Contenido encima */
.contacto {
  background-color: #1a1a1a;
  padding: 60px 80px;
  color: #fff;
}

.contacto-contenido {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
 
}

.contacto-texto {
  flex: 1;
  min-width: 280px;
  padding-left: 20px;
}

.contacto h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffcc00;
}

.contacto h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  margin-top: -50px;
}

.contacto form {
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  margin: 0 auto;
  align-items: center;
}

.form-group {
  margin-bottom: 15px;
}

.contacto input,
.contacto textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
}

.contacto input::placeholder,
.contacto textarea::placeholder {
  color: #999;
}

.contacto button {
  background-color: #ffe18dce;
  color: #333;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
  display: block;
  margin: 20px auto 0; 
}

.contacto button:hover {
  background-color: #e6b800;
}

/* Responsive */
@media (max-width: 768px) {
 
 .contacto {
    background: linear-gradient(to left, rgba(8,64,128,0.2) 5%, rgba(8,64,128,0.6)),
                url("../img/estudio-2.jpg") no-repeat center center;
    background-size: cover;
    background-position: center;
    
    justify-content: center;
    text-align: center;
    margin: 0 10px 50px; /* reducir márgenes laterales */
    padding: 20px; /* ajustar padding */
    height: auto;
  }

  .contacto-contenido {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .contacto-texto {
    padding: 0;
  }

  .contacto h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .contacto h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .contacto form {
    max-width: 100%;  /* que ocupe todo el ancho disponible */
    margin: 0 auto;
    text-align: center; /* para centrar el contenido */
    margin-top: 20px; /* quitar margin negativo si existe */
    padding: 0 10px; /* un poco de padding interno */
  }
}

.footer {
  background-color: #d1b976ce; /* marrón oscuro semi-transparente */
  color: #f9f9f9;
  padding: 20px 40px;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  
}
.footer .logo {
  
  justify-content: center;
  align-items: center;
}



.footer-links a {
  color: #f3f2ed; /* dorado */
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #279fc4;
}

@media (min-width: 768px) {
.footer .logo img {
 align-items: center;
 margin-right: 75px;
 }
}
@media (max-width: 768px) {
  .footer .logo img {
  margin-right: 30px;
  }
  }

.footer .redes-sociales {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  box-shadow: none;
  background: none;
  
  

  
}





.footer .redes-sociales a {
  color: white; /* o cualquier otro color */
  font-size: 24px;
  transition: color 0.3s, transform 0.3s;
  outline: none;
   box-shadow: none;
}

.footer .redes-sociales a:hover {
  color: #1d5594; /* dorado o el color que quieras al pasar el mouse */
  transform: scale(1.2);
}


.menu-toggle {
  display: none; /* oculto en desktop */
}

 /* RESPONSIVE */

@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px; /* header más chico */
  }

  .logo img {
    transform: scale(1.9); /* logo más chico */
    margin-left: -50px;
    margin-top: 15px;
  }

  nav {
    position: fixed;
    left: -250px;
    top: 0;
    width: 220px;
    height: 100%;
    background-color: #d8bc6f;
    padding-top: 80px;
    transition: left 0.4s ease;
    z-index: 200;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.4);
  }

  nav.open {
  position: fixed;
  left: 0;
  z-index: 9999;
  background-color: #d8bc6f; /* Sin transparencia */
}



  nav ul {
    display: flex;
    flex-direction: column;
    padding-left: 25px;
    gap: 20px;
    
  }

 
  nav ul li {
    margin-bottom: 15px;
  }


  nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    font-weight: 500;
  }

  nav ul li a:hover {
    color: gold;
    letter-spacing: 1px;
  }


  .menu-toggle {
    display: block;
    font-size: 2.3em;
    cursor: pointer;
    color: #0a4974ce;
    z-index: 201;
    
  }
 }

/* Mostrar el nav cuando tenga la clase 'open' */


html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* altura de tu header */
}

/* Asegurar que todas las secciones queden detrás del nav */
.servicios,
.porque-elegirnos,
.contacto,
.footer,
.hero {
  position: relative;
  z-index: 1;
}

/* Asegurar que el nav esté siempre adelante */
nav.open {
  z-index: 9999;
}

/* También asegurá que el menú ocupe toda la altura real en móviles */
@media (max-width: 768px) {
  nav {
    height: 100vh; /* cobertura total de pantalla */
  }
}

hr {
  border: none;
  height: 2px;
  background-color: #d8bc6f;
  margin: 20px 0;
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  display: block;
}

.whatsapp-btn img {
  width: 60px;
  height: auto;
  display: block;
  transition: transform 0.3s ease; /* transición suave */
}

.whatsapp-btn img:hover {
  transform: scale(1.15); /* lo agranda un 15% */
}

/* Estilo general de redes sociales */
.redes-sociales {
  display: flex;
  gap: 15px;
  padding: 20px 25px;
}

.redes-sociales a {
  color: #084080;
  font-size: 1.4rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.redes-sociales a:hover {
  color: rgb(30, 135, 255);
  transform: scale(1.2);
}

/* Solo visible en escritorio */
.redes-sociales.desktop {
  margin-left: auto;
}

/* Solo visible dentro del menú en responsive */
.redes-sociales.responsive {
  display: none;
  justify-content: center;
  margin-top: 20px;
}

/* Mostrar/Ocultar según el tamaño */
@media (min-width: 769px) {
  .redes-sociales.desktop {
    display: flex;
    
  }

  .redes-sociales.responsive {
    display: none;
  }
}

@media (max-width: 768px) {
  .redes-sociales.desktop {
    display: none;
  }

  nav.active .redes-sociales.responsive {
    display: flex;
  }

  nav:not(.active) .redes-sociales.responsive {
    display: none;
  }
}

@media (max-width: 768px) {
  .redes-sociales.responsive a {
    font-size: 1.2rem; /* o probá con 0.9rem o 14px si querés más pequeño */
  }
}
.menu-toggle.open {
  background-color: #084080;
}

.footer .creador {
  text-align: center;
  font-size: 10px;
  margin-top: -10px;
  padding-right: 5px;
  color: #ffffff;
}

.footer .creador a {
  color: #ffffff;
  text-decoration: none;
}

.footer .creador a:hover {
  color: #ebe8d9; /* o cualquier color de acento */
  text-decoration: underline;
}

#mensaje-exito {
  display: none;
  color: #0a4e26; /* Verde profesional */
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin-top: 30px;
  animation: fadeIn 0.6s ease-in-out;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Animación de aparición */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

