/* ========================================
  ESTILOS GENERALES Y FUENTES
   ======================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Quicksand", sans-serif;
}

.poppins {
  font-family: "Poppins", sans-serif;
  font-style: bold;
}

/* Tipografías por elemento */
h1, h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: bold;
  color: #2d3540;
}

h3, h4, h5, h6, h7, h8, p, a, button, form {
  font-family: "Quicksand", sans-serif;
}

h7 {
  font-size: 12px;
  color: #a98edf;
}

h8 {
  font-size: 12px;
  color: #49e8d4;
}

/* Clases de colores de iconos */
.icon-turquesa {
  color: #49e8d4;
}

.icon-grisaceo {
  color: #2d3540;
}

.icon-lila {
  color: #a98edf;
}

/* ========================================
  HEADER - NAVBAR
   ======================================== */

.navbar {
  background-color: #ffffff;
}

.logo {
  height: clamp(30px, 5vw, 50px); /* Mín: 30px, Ideal: 5vw, Máx: 50px */
  width: auto;
}

/* ========================================
  SECCIÓN HERO/INICIO
   ======================================== */

.hero {
  text-align: center;
  padding: 60px 20px;
  background-size: cover;
  background-position: center;
  background-image: url('banner-mobile.webp');
}

@media (min-width: 769px) {
  .hero {
    background-image: url('banner-desktop.webp');
  }
}

/* ========================================
  SECCIÓN QUIENES SOMOS
   ======================================== */

#quienes-somos h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: bold;
}

#quienes-somos .btn {
  background-color: #A64D79;
  color: white;
  font-family: "Quicksand", sans-serif;
  border: none;
}

#quienes-somos .btn:hover {
  background-color: #151930;
  color: white;
}

/* Estilos para la nueva estructura de quienes somos */
.main-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.content-box {
  background-color: white;
  padding: 30px;
  height: fit-content;
}

.sidebar h2 {
  color: #2d3540;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.sidebar h3 {
  color: #666;
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: 300;
}

.sidebar .button-note {
  font-size: 0.9em;
  color: #888;
  margin-top: 10px;
}

.main-content p {
  color: #555;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.italic-text {
  font-style: italic;
  color: #777;
  font-size: 1.05em;
}

/* ========================================
  SECCIÓN SERVICIOS
   ======================================== */

.card i {
  font-size: 48px;
}

.hover-card {
  transition: transform 0.2s ease-in-out;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.card-body i {
  transition: color 0.3s ease;
}

.hover-card:hover .card-body i {
  transform: scale(1.1);
}

/* ========================================
  MODALES DE SERVICIOS
   ======================================== */

.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  padding: 20px 30px;
}

.modal-body {
  padding: 30px;
  margin-bottom: 40px;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 20px 30px;
  justify-content: center;
}

/* ========================================
  SECCIÓN CONOCENOS
   ======================================== */

.conocenos {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 500px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Contenedor de la imagen */
.g1 {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nos {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.nos:hover {
    transform: translateY(-5px);
}

/* Contenedor del texto */
.g2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.g2 p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
    text-align: start;
}

.g2 p:last-child {
    margin-bottom: 0;
}

.g2 p:first-child {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.2rem;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
  SECCIÓN NOSOTROS - BOTONES BIOGRAFÍAS
   ======================================== */

.bio-buttons-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.bio-button-andrea {
  background-color: #F8F5EE;
  border: 2px solid #A64D79;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  display: block;
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
}

.bio-button-andrea:hover {
  background-color: #F8F5EE;
  border-color: #A64D79;
  color: #A64D79;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bio-button-andrea-wrapper {
  flex: 1;
  max-width: 200px;
}

.bio-button-esteban {
  background-color: #F8F5EE;
  border: 2px solid #A64D79;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  display: block;
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
}

.bio-button-esteban:hover {
  background-color: #F8F5EE;
  border-color: #A64D79;
  color: #A64D79;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bio-button-esteban-wrapper {
  flex: 1;
  max-width: 200px;
}

/* ========================================
  MODALES DE BIOGRAFÍAS
   ======================================== */

.modal-profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}

#modalio h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: bold;
  color: #2d3540;
}

#modalio p {
  font-family: "Quicksand", sans-serif;
  color: #555;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
  padding: 5px;
  text-align: center;
}

.linkedin-icon {
  color: #0077b5;
  font-size: 2rem;
  transition: color 0.3s ease;
}

.linkedin-icon:hover {
  color: #005885;
}

/* ========================================
  SECCIÓN MARCAS
   ======================================== */

.marcas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.marcas div {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.marcas_img {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* ========================================
  SECCIÓN CONTACTO
   ======================================== */

#contacto {
  background-color: #f8f9fa;
  padding: 40px 20px;
  text-align: center;
}

#contacto .btn {
  background-color: #A64D79;
  color: white;
  font-family: "Quicksand", sans-serif;
  border: none;
}

#contacto .btn:hover {
  background-color: #A64D79;
  color: white;
}

#contactanos .btn {
  background-color: #A64D79;
  color: white;
  font-family: "Quicksand", sans-serif;
  border: none;
}

#contactanos .btn:hover {
  background-color: #A64D79;
  color: white;
}

/* ========================================
  FOOTER
   ======================================== */

footer a {
  font-size: 24px;
}

/* ========================================
  RESPONSIVE DESIGN
   ======================================== */

/* Tablets y dispositivos medianos */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 24px;
    font-weight: bolder;
  }

  /* Quienes somos - responsive */
  .main-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .content-box {
    padding: 20px;
  }

  .main-content h1 {
    font-size: 1.8em;
  }

  .sidebar h2 {
    font-size: 1.5em;
  }

  /* Conocenos - responsive */
  h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .conocenos {
    flex-direction: column;
    gap: 40px;
    min-height: auto;
    padding: 30px 20px;
  }

  .g1 {
    order: 1;
    width: 100%;
  }

  .g2 {
    order: 2;
    padding: 0;
    width: 100%;
  }

  .g2 p {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 20px;
  }

  .g2 p:first-child {
    font-size: 1.1rem;
  }

  /* Biografías - responsive */
  .bio-buttons-container {
    flex-direction: column;
    align-items: center;
  }

  .quienes_somos {
    flex-direction: column;
    align-items: center;
  }

  /* Marcas - responsive */
  .marcas {
    gap: 30px;
    padding: 40px 20px;
  }
  
  .marcas div {
    flex: 0 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
    min-height: 70px;
  }
  
  .marcas_img {
    max-height: 50px;
    max-width: 150px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  /* Conocenos - móviles */
  h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .conocenos {
    gap: 30px;
    padding: 20px 15px;
  }

  .g2 p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .g2 p:first-child {
    font-size: 1rem;
  }

  /* Marcas - móviles */
  .marcas {
    gap: 20px;
    padding: 30px 15px;
  }
  
  .marcas div {
    flex: 0 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-height: 60px;
  }
  
  .marcas_img {
    max-height: 63px;
    max-width: 168px;
  }
}