:root {
    --primary-color: #18462f;
    --accent-color: #009c65;
    --bg-light: #f6f9f7;
    --bg-dark: #0e1b1b;
    --text-dark: #222;
    --text-light: #fff;
    --font-main: 'Poppins', sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
  }
  
  /* === NAVBAR === */
  .navbar {
    width: 100%;
    background: #f2ede5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 1.2rem 0; /* Aumentamos altura */
  }
  
  .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo img {
    height: 50px; /* Ajusta según tu logo */
    max-height: 60px;
    display: block;
  }
  
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-links li a:hover {
    color: var(--accent-color);
  }

  /* Dropdown base */
.dropdown {
  position: relative;
}

.dropdown a {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  display: none;
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--accent-color);
}

/* Show on hover (desktop) */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Responsive - open by click */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: none;
    display: none;
    padding-left: 1rem;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }
}

  p {
    text-align: justify;
  }
  
  
  .cta-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  
  .cta-btn:hover {
    background: #1ab152;
  }
  
  /* === HAMBURGER === */
  .menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s;
  }
  
  /* === RESPONSIVE === */
  @media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 70px;
      left: 0;
      background: #fff;
      width: 100%;
      flex-direction: column;
      align-items: center;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-in-out;
    }
  
    .nav-links.open {
      max-height: 300px;
    }
  
    .cta-btn {
      display: none;
    }
  
    .menu-toggle {
      display: flex;
    }
  }
  
  /* === GENERALES === */
  header, section, footer {
    padding: 2rem 1rem;
  }
  section {
    margin-bottom: 4rem;
  }
  
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* === HERO === */
  .hero {
    position: relative;
    background: url('../img/banner-maderialaventa.png') no-repeat center center/cover;
    color: var(--text-light);
    text-align: left;
    min-height: 550px; /* Aumentamos el espacio visible */
    display: flex;
    padding: 6rem 1rem;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* capa oscura */
    z-index: 1;
  }
  
  .hero .container {
    position: relative;
    z-index: 2;
  }

  
  .hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
  }
  
  .hero p {
    font-size: 1.1rem;
    margin: 1rem 0;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .hero-buttons a {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    border: none;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 600;
    transition: background 0.3s ease;
  }
  
  .hero-buttons a.secondary {
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
  }
  .hero-contacto {
    position: relative;
    background: url('../img/contacto-madederia.png') no-repeat center center/cover;
    color: var(--text-light);
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }
  
  .hero-contacto::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .hero-content .cta-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .hero-content .cta-btn:hover {
    background: #007d4e;
  }
  .hero-nosotros {
    position: relative;
    background: url('../img/nosotros-banner-madederia-laventa.png') no-repeat center center/cover;
    color: var(--text-light);
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }
  
  .hero-nosotros::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    
    z-index: 1;
  }

  
  /* === PRODUCTS === */
  .products {
    background-color: var(--bg-light);
    text-align: center;
  }
  
  .products h2 {
    margin-bottom: 2rem;
  }
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  @media (max-width: 1024px) {
    .card-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .card-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  .card img.icon {
    width: 30px;
    height: auto;
    margin-bottom: 1rem;
  }
  
  .card img:not(.icon) {
    margin-top: 1rem;
    width: 100%;
    border-radius: 10px;
  }
  .card i.ph {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
  }
  
  


  /* === WHY CHOOSE US === */
  .why-choose-us {
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;        /* CENTRA VERTICALMENTE */
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 1rem;
  }
  
  .why-choose-us .text-block {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;    /* CENTRA CONTENIDO INTERNO */
    height: 100%;
  }
  
  .why-choose-us .image-block {
    flex: 1;
    min-width: 280px;
  }
  
  .why-choose-us h2 {
    margin-bottom: 1rem;
  }
  
  .why-choose-us h3 {
    color: var(--accent-color);
    margin-top: 1rem;
  }
  
  
  /* === HISTORIA === */
  .historia {
    padding: 4rem 1rem;
  }
  
  .historia-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
  }
  
  .historia-text,
  .historia-img {
    flex: 1;
    min-width: 280px;
  }
  
  .historia-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  .estadisticas {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    text-align: center;
  }
  
  .estadisticas div {
    flex: 1;
  }
  
  .estadisticas strong {
    font-size: 2rem;
    color: var(--primary-color);
  }
  
  /* === PROCESO === */
  .proceso {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 1rem;
    text-align: center;
  }
  
  .proceso h2 {
    color: var(--accent-color);
    font-weight: 600;
  }
  
  .pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .paso {
    background: #fff;
    color: #000;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .paso:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  
  
  .paso h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  /* === MISIÓN Y VISIÓN === */
  .mision-vision {
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  
  .mision-vision .bloque {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
  }
  
  .mision-vision .bloque img {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    border-radius: 10px;
  }
  
  .mision-vision .texto {
    flex: 2;
    min-width: 250px;
  }
  
  /* === COMUNIDAD === */
  .comunidad {
    padding: 4rem 1rem;
  }
  
  .comunidad .bloque {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
  }
  
  .comunidad img {
    flex: 1;
    border-radius: 10px;
    max-width: 400px;
  }
  
  .comunidad .texto {
    flex: 2;
  }
  /* === CTA FINAL === */
  .cta-final {
    position: relative;
    background: url('../img/call-center-madederia.png') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 5rem 1rem;
    overflow: hidden;
  }
  
  .cta-final::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* filtro oscuro */
    z-index: 1;
  }
  
  .cta-final > .container {
    position: relative;
    z-index: 2;
  }
  
  
  .cta-final h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .cta-final p {
    margin-bottom: 2rem;
  }
  
  .cta-final .btn {
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .cta-final .btn:hover {
    background: #007d4e;
  }
  
  /* === CONTACTO MAPA + FORM === */
  .contacto {
    padding: 4rem 1rem;
    text-align: center;
  }
  
  .contacto h4 {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .contacto h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  .contacto p {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #444;
  }
  
  .mapa-form {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
  }
  
  .mapa-form iframe {
    flex: 1;
    min-width: 300px;
    height: 350px;
    border-radius: 10px;
    border: none;
  }
  
  .form-box {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
  }
  
  .form-box h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
  }
  
  .form-box input,
  .form-box textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
  }
  
  .form-box input:focus,
  .form-box textarea:focus {
    border-color: var(--accent-color);
    outline: none;
  }
  
  .form-box button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .form-box button:hover {
    background: #007d4e;
  }
  
  /* === CONTACTO RÁPIDO === */
  .quick-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
    background: var(--bg-light);
    padding: 4rem 1rem;
    text-align: center;
  }
  
  .quick-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
  }
  
  .quick-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  .sobre-nosotros {
    padding: 4rem 1rem;
  }
  
  .intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .reverse-layout {
    flex-direction: row-reverse;
  }
  
  .intro-text {
    flex: 1;
    min-width: 300px;
  }
  
  .intro-text h2 {
    font-size: 2.2rem;
    
  }
  
  .intro-text p {
    margin-bottom: 1rem;
    color: #444;
    font-size: 1rem;
  }
  
  .intro-text ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
  }
  
  .intro-text ul li {
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .intro-images {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .framed-image img {
    max-width: 100%;
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  }
  
  
  .quick-box p {
    font-size: 0.95rem;
    color: #555;
  }
  
  /* === FOOTER === */
  footer {
    background-color: #f2ede5;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: #555;
  }
  
  .footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }
  
  footer h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  footer ul {
    list-style: none;
  }
  
  footer ul li {
    margin-bottom: 0.5rem;
  }
  .footer-branding {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-logo {
    max-width: 160px;
    margin-bottom: 1rem;
  }
  .footer-links-address {
    flex: 2;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    min-width: 250px;
    flex-wrap: wrap;
  }
  
  .footer-links,
  .footer-address {
    flex: 1;
    min-width: 180px;
  }
  
  .footer-services {
    flex: 1;
    min-width: 250px;
  }
  
  
  /* === RESPONSIVE FINAL === */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2rem;
    }
  
    .hero-buttons {
      flex-direction: column;
    }
  
    .why-choose-us,
    .historia-content,
    .mision-vision .bloque,
    .comunidad .bloque,
    .trayectoria-content,
    .footer-grid,
    .quick-contact,
    .mapa-form {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .estadisticas {
      flex-direction: column;
      gap: 1rem;
    }
  
    .form-box {
      width: 100%;
    }
  
    .trayectoria-content img {
      max-width: 100%;
    }
  }
  .card-grid-productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  @media (max-width: 1024px) {
    .card-grid-productos {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .card-grid-productos {
      grid-template-columns: 1fr;
    }
  }
  .sobre-nosotros {
    padding: 4rem 1rem;
  }
  
  .intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
  }
  
  .intro-images {
    position: relative;
    flex: 1 1 50%;
    min-width: 280px;
    max-width: 500px;
    animation: fadeIn 1s ease-in-out;
  }
  
  .img-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    background-color: white;
  }
  
  .img-overlay {
    position: absolute;
    bottom: -80px;
    left: 300px;
    width: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: #fff;
    border: 5px solid #fff;
  }
  
  
  .intro-text {
    flex: 1 1 45%;
    min-width: 280px;
  }
  .intro-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #444;
  }
  
  .intro-text h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  .intro-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .intro-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
  }
  
  .intro-text li {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
  }
  .cta-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  .cta-btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    } to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @media (max-width: 768px) {
    .intro-content {
      flex-direction: column;
      align-items: center;
    }
  
    .intro-images {
      flex-direction: column;
      position: relative;
      width: 100%;
    }
  
    .img-main {
      width: 100%;
    }
  
    .img-overlay {
      position: static;
      width: 90%;
      margin-top: 1rem;
      border: 5px solid #fff;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
  }
  @media (max-width: 768px) {
    .why-choose-us {
      flex-direction: column;
      text-align: center;
    }
  
    .why-choose-us .text-block {
      align-items: center;
    }
  
    .why-choose-us .image-block img {
      max-width: 100%;
      height: auto;
    }
  }
  