/* =========================================
   VARIABLES DE MARCA KYLLPA
   ========================================= */
:root {
  --verde: #2E6B4F;       /* Verde medio */
  --salvia: #8CA79A;      /* Salvia */
  --terracota: #C17A48;   /* Terracota */
  --arena: #EDE7DA;       /* Arena */
  --carbon: #242422;      /* Carbón */
  --oscuver: #1C423B;     /* Verde Kyllpa */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #1C423B; /* Color --oscuver directo por seguridad */
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif; 
  font-weight: 400;
  color: var(--carbon);
  line-height: 1.7;
  background: white;
  margin: 0;
  padding: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* El contenido principal de tu web se expande para ocupar el espacio libre */
main {
  flex: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================================
   NAVEGACIÓN Y HEADER
   ========================================= */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(237, 231, 218, 0.95); /* Salvia con transparencia */
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 80px;
  width: auto;
}

nav {
  display: flex;
  gap: 40px;
}

nav a {
  color: var(--oscuver);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 35px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--terracota);
}

.btn-nav {
  padding: 12px 22px;
  background: var(--terracota);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600; 
  transition: transform 0.3s ease;
}

.btn-nav:hover {
  transform: translateY(-2px);
}

/* =========================================
   SECCIÓN HERO (INICIO)
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 50px 20px;
  color: var(--arena);
  background-image: linear-gradient(rgba(28, 66, 59, 0.75), rgba(28, 66, 59, 0.75)), url('iniciofoto.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 800px;
}

.hero-tag {
  text-transform: uppercase;
  font-weight: 500; 
  letter-spacing: 2.5px;
  margin-top: 40px;  
  margin-bottom: 40px;
  color: var(--arena);
  font-size: 1.1rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600; 
  color: white;
  line-height: 1.2;
  margin-bottom: 40px;
}

.hero p {
  font-size: 1.1rem;
  color: white;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  background: var(--terracota);
  color: white;
  padding: 15px 10px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;

}

.btn-primary:hover, .btn-secondary:hover {
  background: var(--arena);
  color: var(--oscuver);
}

/* =========================================
   ESTILOS GENERALES DE SECCIONES
   ========================================= */
section {
  padding: 90px 0;
}

h2, h3, .section-title {
  font-weight: 600;
  color: var(--oscuver);
}

.section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  font-weight: 500;
  font-size: 1.1rem;
}

/* =========================================
   PILARES
   ========================================= */
.trust {
  background: #FAFAF9;
  position: relative;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background: var(--oscuver);
  padding: 35px 30px;
  border-radius: 12px;
  border: 1px solid rgba(140, 167, 154, 0.3);
  box-shadow: 0 4px 20px rgba(28, 66, 59, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--salvia);
  transition: background 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: white;
  border-color: var(--salvia);
  box-shadow: 0 12px 30px rgba(28, 66, 59, 0.08);
}

.card:hover h3,
.card:hover p {
  color: var(--verde);
}

.card:hover::before {
  background: var(--terracota);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--arena);
  margin-bottom: 12px;
  font-weight: 600;
  transition: color 0.35s ease;
}

.card p {
  color: var(--arena);
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.9;
  transition: color 0.35s ease;
}

/* =========================================
   SERVICIOS
   ========================================= */
.services-section {
  padding: 100px 0;
  background-color: #FAFAF9;
}

.services-grid-pro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .services-grid-pro {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid-pro {
    grid-template-columns: 1fr;
  }
}

.service-card-hover {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #EAEFEA;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  color: var(--verde);
}

.service-card-hover .service-link {
  color: var(--oscuver);
  text-decoration: none;
  font-weight: 500;
}

.service-card-hover .service-link:hover {
  color: var(--terracota);
  text-decoration: underline;
}

.service-card-hover h4 {
  font-family: 'Poppins', sans-serif; 
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.4s ease;
  margin-bottom: 0;
  color: var(--oscuver);
}

.service-hidden-box {
  opacity: 0;
  transform: translateY(15px);
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-hover:hover {
  transform: translateY(-5px);
  background: #FAFAF9;
  border-color: var(--verde);
  box-shadow: 0 15px 35px rgba(45, 90, 39, 0.08);
  justify-content: flex-start;
}

.service-card-hover:hover h4 {
  transform: translateY(0);
  margin-bottom: 12px;
}

.service-card-hover:hover .service-hidden-box {
  opacity: 1;
  transform: translateY(0);
  max-height: 300px;
}

.service-hidden-box p {
  font-family: 'Poppins', sans-serif; 
  font-size: 0.8rem;
  color: var(--oscuver);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* =========================================
   ESTILOS PREMIUM: PÁGINA "NOSOTROS"
   ========================================= */
.about-editorial {
  padding: 160px 0 100px 0;
  background-color: #FAFAF9;
}

.about-grid-editorial {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 80px;
}

.editorial-tag {
  display: block;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--terracota);
  margin-bottom: 15px;
}

.about-grid-editorial h2 {
  font-family: 'poppins', serif;
  font-size: clamp(2.2rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--oscuver);
  line-height: 1.15;
  margin-bottom: 25px;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--oscuver);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 20px;
  opacity: 0.9;
}

.about-text-side p {
  color: #1C423B;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-image-side {
  width: 100%;
}

.image-box-editorial {
  width: 100%;
  height: 350px;
  background-image: url('Foto web.png');
  background-size: cover;
  background-position: center;
  border-radius: 4px; /* Bordes sutiles más elegantes que los muy redondeados */
  box-shadow: 0 20px 40px rgba(28, 66, 59, 0.12);
}

/* Fila de características minimalistas */
 .about-features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  padding-top: 20px;
 
 border-top: 1px solid rgba(40, 66, 59, 0.1);
}

.feature-minimal {
  padding: 10px 0;
}

.feature-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--salvia);
  display: block;
  margin-bottom: 5px;
}

.feature-minimal h4 {
  font-size: 1.05rem;
  color: var(--oscuver);
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-minimal p {
  font-size: 0.9rem;
  color: #6006;
  line-height: 1.5;
}

/* Misión y Visión Estilo Tarjeta Ejecutiva */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.mv-card {
  background: white;
  padding: 30px 30px;
  border-radius: 6px;
  border: 1px solid #8CA79A;
  box-shadow: 0 10px 30px rgba(28, 66, 59, 0.03);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(28, 66, 59, 0.07);
  border-color: var(--salvia);
}

.mv-card h3 {
  font-family: 'Poppins', serif;
  font-size: 1.8rem;
  color: var(--salvia);
  margin-bottom: 15px;
}

.mv-card p {
  color: var(--oscuver);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Responsivo para móviles de la sección nosotros */
@media(max-width: 900px) {
  .about-grid-editorial {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .image-box-editorial {
    height: 320px;
  }

  .about-features-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   ESTILOS ESPECÍFICOS: PÁGINA "CONTACTO" (FONDO DE FOTO Y CENTRADO)
   ========================================= */

.contact-hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 20px 80px 20px;
  /* Capa semitransparente de color Kyllpa (--arena encima de la foto de fondo */
  background-image: linear-gradient(rgba(237, 231, 218, 0.8), rgba(237, 231, 218, 0.8)), url('iniciofoto.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.form-side-center .form-group label {
  display: block;                  /* Hace que la etiqueta aparezca arriba de la casilla */
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--oscuver);           /* ¡Aquí defines el color verde oscuro de tu marca! */
  margin-bottom: 6px;              /* Espacio pequeño entre el texto y la casilla */
}

.contact-container-center {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

/* Tarjeta del formulario elegante y limpia */
.form-side-center {
  background: #FFFFFF;
  padding: 50px 45px;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(46, 107, 79, 0.3);
}

.form-side-center .editorial-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 3.5vw, 3rem);
  color: var(--oscuver);
  line-height: 1.1;
  margin-bottom: 8px;
  font-weight: 700;
  text-align: center;
}

.form-side-center .editorial-subtitle {
  font-size: 0.98rem;
  color: var(--oscuver);
  margin-bottom: 30px;
  font-weight: 400;
  text-align: center;
  opacity: 0.8;
  line-height: 1.5;
}

/* Espaciado y diseño de los campos de entrada */
.form-side-center .form-group {
  margin-bottom: 20px;
}

.form-side-center .form-group input,
.form-side-center .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #C17A48;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: var(--oscuver);
  background-color: #FFFFFA;
  transition: all 0.3s ease;
}

.form-side-center .form-group input::placeholder,
.form-side-center .form-group textarea::placeholder {
  color: var(--oscuver);
  opacity: 1;
}

.form-side-center .form-group input:focus,
.form-side-center .form-group textarea:focus {
  outline: none;
  border-color: var(--terracota);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(140, 167, 154, 0.18);
}

/* Botón de envío alineado con la paleta */
.form-side-center .contact-form .btn-primary {
  background: var(--oscuver);
  color: white;
  padding: 15px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  margin-top: 5px;
  font-family: 'Poppins', sans-serif;
}

.form-side-center .contact-form .btn-primary:hover {
  background: var(--terracota);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(193, 122, 72, 0.3);
}

/* Adaptabilidad perfecta para pantallas pequeñas */
@media(max-width: 768px) {
  .contact-hero-section {
    padding: 110px 15px 50px 15px;
  }

  .form-side-center {
    padding: 30px 20px;
  }
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--oscuver);
  color: var(--salvia);
  text-align: center;
  font-size: 0.8rem;
  padding: 10px 10px 10px;
  margin-bottom: 0;
}

footer h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

footer p {
  margin-bottom: 0px;
}

/* =========================================
   RESPONSIVE (MÓVILES)
   ========================================= */
.menu-mobile {
  display: none;
}

@media(max-width: 768px){
  nav { display: none; }
  
  .menu-mobile {
    display: block;
    color: var(--oscuver);
    font-size: 1.8rem;
    cursor: pointer;
  }
  
  .btn-nav { display: none; }
  
  .hero {
    text-align: center;
    padding-top: 90px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .pilares-grid {
    grid-template-columns: 1fr;
  }
}