/* -----------------------
   RESET + GLOBAL
-------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Base: 1rem = 16px */
}

body {
  font-family: 'Futura', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

/* -----------------------
   TIPOGRAFÍAS
-------------------------- */
@font-face {
  font-family: 'Futura';
  src: url('../fonts/Futura Bk BT Book.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Futura';
  src: url('../fonts/Futura Md BT Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Futura';
  src: url('../fonts/Futura Md BT Medium Italic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Futura';
  src: url('../fonts/Futura Md BT Bold Italic.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'Varien';
  src: url('../fonts/Varien.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* -----------------------
   CONTENEDOR GENERAL
-------------------------- */
.container {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding: 0 0.9375rem; /* 15px */
}

/* -----------------------
   HEADER
-------------------------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.875rem; /* 10px 30px */
  background-color: #00665E;
  color: white;
}

.LogoM img {
  width: 2.5rem; /* 40px */
  height: auto;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin: 0 0.9375rem; /* 15px */
}

.navbar ul li a {
  text-decoration: none;
  color: white;
  padding: 0.625rem 0; /* 10px */
}

/* Botones */
.contact-btn {
  background-color: #004D40;
  color: white;
  padding: 0.625rem 1.25rem; /* 10px 20px */
  border-radius: 0.3125rem; /* 5px */
  text-decoration: none;
}

.contact-btn1 {
  background-color: #CCFF00;
  color: #00332E;
  padding: 0.625rem 1.25rem;
  border-radius: 0.3125rem;
  font-weight: bold;
}

.contact-btn:hover {
  background-color: #00332E;
}



/* -----------------------
   RESPONSIVE DESIGN
-------------------------- */
@media (max-width: 1200px) {
  .logo-fondo { width: 11.25rem; } /* 180px */
  .texto-fondo { font-size: 2rem; } /* 32px */
  .texto2 { font-size: 1.125rem; } /* 18px */
  .producto-container h2 { font-size: 2rem; } /* 32px */
}

@media (max-width: 900px) {
  .logo-texto-container { top: 6.25rem; } /* 100px */
  .logo-fondo { width: 7.5rem; } /* 120px */
  .texto-fondo { font-size: 1.375rem; } /* 22px */
  .texto2 { font-size: 0.875rem; } /* 14px */
  .producto-container h2 { font-size: 1.375rem; } /* 22px */
}

@media (max-width: 600px) {
  .logo-texto-container {
    position: static;
    top: 0;
    padding: 0.625rem 0; /* 10px */
  }

  .logo-fondo { width: 5rem; } /* 80px */

  .textos-container {
    margin-top: 0.625rem; /* 10px */
    margin-left: 0;
    padding: 0 0.3125rem; /* 5px */
  }

  .texto-fondo { font-size: 1rem; } /* 16px */
  .texto2 { font-size: 0.75rem; } /* 12px */

  .producto-container h2 {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 1.25rem; /* 20px */
  }

  .texto-imagen, .texto-imagen1, .texto-imagen2,
  .texto-imagen3, .texto-imagen4 {
    position: relative;
    text-align: center;
    font-size: 0.75rem; /* 12px */
    transform: none;
  }

  .rectangulos-derecha {
    position: static;
    flex-direction: row;
    justify-content: center;
    gap: 0.625rem; /* 10px */
    margin-top: 0.9375rem; /* 15px */
  }

  .rectangulo {
    font-size: 0.875rem; /* 14px */
    padding: 0.625rem 0.9375rem; /* 10px 15px */
  }
}

/* -----------------------
   FOOTER
-------------------------- */
.footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1.25rem; /* 20px */
  font-size: 0.9rem;
}


/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Versión móvil */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .navbar {
    width: 100%;
    display: none; /* oculto por defecto */
    flex-direction: column;
    background: #00665E;
    text-align: center;
    margin-top: 0.5rem;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar.show {
    display: flex; /* se muestra al activar */
  }

  .contact-btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Contenedor flexible */
.responsive-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* espacio entre tarjetas */
  justify-content: center;
  margin-top: 2rem;
}

/* Cada tarjeta */
.responsive-flex .card {
  flex: 1 1 calc(33.333% - 1.5rem); /* 3 columnas en desktop */
  max-width: 20rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
  text-align: center;
  padding: 1rem;
}

.responsive-flex .card img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.responsive-flex .card p, 
.responsive-flex .card h3 {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #00665E;
}

/* Ajustes responsivos */
@media (max-width: 900px) {
  .responsive-flex .card {
    flex: 1 1 calc(50% - 1.5rem); /* 2 columnas en tablet */
  }
}

@media (max-width: 600px) {
  .responsive-flex .card {
    flex: 1 1 100%; /* 1 columna en móvil */
  }
}

/* Contenedor principal */
.video-fondo-container {
    position: relative;
    width: 100%;
    min-height: 100vh; /* ocupa toda la pantalla */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Video de fondo */
.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* cubre todo el contenedor */
    z-index: 1;
}

/* Contenido encima del video */
.contenido-sobre-video {
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* Logo */
.logo-fondo {
    max-width: 220px;
    width: 35%;
    height: auto;
}

/* Textos */
.texto-fondo {
    color: #00665E;
}

.texto2 {
    color: #fff;
    max-width: 650px;
    margin: 0 auto;
}

/* Botón */
.contact-btn1 {
    background-color: #00665E;
    color: #fff;
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contact-btn1:hover {
    background-color: #00514B;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Responsivo */
@media (max-width: 767px) {
    .logo-fondo {
        width: 60%;
        max-width: 160px;
    }
    .texto-fondo {
        font-size: 1.3rem;
    }
    .texto2 {
        font-size: 1rem;
        padding: 0 10px;
    }
    .contact-btn1 {
        width: 100%;
        padding: 16px 0;
        font-size: 1.1rem;
    }
}

.imagen-con-texto {
    position: relative;
    width: 100%;
    min-height: 400px; /* Ajusta según diseño */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Texto superior e inferior separados */
}

/* Imagen de fondo */
.fondo-img1 {
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Texto superior */
.textoJF {
    color: #00665E; /* Verde */
    font-size: 2rem;
    max-width: 90%;
    margin: 0 auto;
    z-index: 2;
}

/* Texto inferior */
.texto-sobre-imagen {
    color: #000;
    font-size: 1.1rem;
    max-width: 90%;
    margin: 0 auto;
    z-index: 2;
    text-align: center;
}

/* Responsivo */
@media (max-width: 767px) {
    .textoJF, .texto-sobre-imagen {
        font-size: 1rem;
        max-width: 95%;
        padding: 0 10px;
        text-align: center;
    }
}

.titulo-productos {
    color: #00665E; /* Verde */
    font-weight: bold;
    text-align: center;
    font-size: 3rem; /* Ajusta el tamaño si quieres */
}

.responsive-flex {
    width: 100%;
}

.cards-container {
    width: 100%;
}

.card {
    width: 100%;
    border-radius: 10px;
}

/* Texto centrado verticalmente y responsive */
.texto-card p {
    font-size: 2rem;
    text-align: center;
    color: #00665E;
    font-weight: bold;
}

/* Ajustes para móviles */
@media (max-width: 767px) {
    .card {
        flex-direction: column !important;
        text-align: center;
    }

    .imagen-card {
        margin-top: 10px;
    }

    .texto-card p {
        font-size: 1rem;
    }
}