/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background-color: #c62828;
    color: #fff;
    line-height: 1.6;
  }
  
.header {
  background-color: white; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;

  position: fixed; 
  top: 0; 
  width: 100%;
  z-index: 1000; 
  border-bottom: 2px solid black
}



.logo-container {
    flex: 1; 
    display: flex;
    justify-content: left; 
    margin-left: 50px;
    max-width: 150px;
    max-height: 150px;
}

.logo {
    max-width: 500px;
}

.boton-btn { 
    background-color: #dd2518;
    color: white;
    padding: 20px 30px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .boton-btn:hover { 
    background-color: #5f130d;
  }
  .fixed-btn {
    margin-right: 30px;
  }
  
  
  
  /* CONTENEDORES SECCIONES */
  .red-section, .carousel {
    padding: 1rem 1rem;
    margin: 0 auto;
    margin-top: 120px;
}

  
  /* SECCIÓN ROJA */
  .red-section {
    padding: 2rem 2rem;
    width: 100%;
    background-image: url('images/fondo_oscuro.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
  }

  .red-section .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  /* SECCIÓN CON FONDO DE IMAGEN */
  .image-section {
    padding: 4rem 2rem;
    width: 100%;
    background-image: url('images/fondo_oscuro.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
  }

  .image-section .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  
  
  /* Overlay oscuro para legibilidad */
  .image-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
  }
  
  .image-section > * {
    position: relative;
    z-index: 1;
  }
  
  /* TIPOGRAFÍA GENERAL */
  h1, h2, h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  /* CAROUSEL */
  .carousel-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  
  .card {
    position: relative;
    flex: 1 1 calc(33.33% - 1rem); 
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    padding: 3rem; 
    text-align: center;
    min-width: 250px; 
    color: white;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    overflow: hidden;
    z-index: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  
  /* Capa borrosa en hover */
  .card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-image: inherit;
    z-index: -1;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.4);
  }
  
  .card:hover::before {
    transform: scale(1.1);
    filter: blur(4px);
    filter: brightness(0.7);

  }

  
  /* GRID */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  /* TARJETAS DE FUNCIONES */
  .feature-card {
    background: white;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
  }
  
  .feature-card img {
    height: 50px;
    margin-bottom: 1rem;
  }
  
  /* FOOTER */
  .footer {
    background-color: black; 
    color: #fff;
    padding-top: 3rem;
    border-top: 1px solid white;
    position: relative;
  }
  
  .footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    border-radius: 10px;
    margin: 0 1rem;
  }
  
  .footer > * {
    position: relative;
    z-index: 1;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .contact-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 1rem;
    border-radius: 10px;
    color: #fff;
    min-width: 280px;
    max-width: 320px;
    flex: 1;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
  }

  .icon-text {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
  }
  
  
  .contact-card h3 {
    margin: 0 0 0.3rem 0;
  }

  .contact-card p {
    margin: 0;
    font-size: 1rem;
    color: #fff;
  }
  
  .contact-card a {
    color: #fff;
    text-decoration: underline;
  }
  
  .contact-card small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #ddd;
  }

 .legal {
  text-align: center;
  margin-top: 3rem;
  font-size: 1rem;
  color: #eee;
  background-color: #333;
}
  
  
  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .red-section, .carousel, .image-section, .footer {
      padding: 1.5rem 1rem;
    }
    .card {
      flex: 1 1 calc(50% - 1rem);
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .grid {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .card {
      flex: 1 1 100%;
    }
    .logo-container {
      margin-left: 5px;
      padding-left: 10px;
      max-width: 350px;
    }
    .logo {
      max-width: 100%;
      height: auto;
    }
    .carousel-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
  }
  
  @media (max-width: 600px) {
    .header {
      flex-direction: row;
      justify-content: space-between;
      padding: 0.5rem 1rem;
    }
  
    .logo-container {
      margin-left: 5px;
      padding-left: 10px;
      max-width: 300px;
    }
  
    .logo {
      max-width: 100%;
      height: auto;
    }
  
    .boton-btn {
      font-size: 0.8rem;
      padding: 10px 16px;
      border-radius: 8px;
    }
  
    .carousel-container,
    .card-container {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
  
    .card {
      width: 100%;
      flex: 1 1 100%;
    }
    .footer-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      text-align: center;
    }
  
    .contact-card {
      width: 100%;
      max-width: 350px;
    }
  
    .icon-text {
      justify-content: center;
      align-items: center;
      text-align: center;
      gap: 1rem;
    }
  
    .icon {
      width: 32px;
      height: 32px;
    }
  }
  
  @media (max-width: 375px) {
    .header {
      flex-direction: row;
      justify-content: space-between;
      padding: 0.5rem 1rem;
    }
  
    .logo-container {
      margin-left: 2px;
      padding-left: 10px;
      max-width: 100px;
    }
  
    .logo {
      max-width: 100%;
      height: auto;
    }
  
    .boton-btn {
      font-size: 0.75rem;
      padding: 8px 14px;
      border-radius: 6px;
    }
  
    .carousel-container,
    .card-container {
      flex-direction: column;
      gap: 1rem;
    }
  
    .card {
      width: 100%;
      flex: 1 1 100%;
    }

    .footer-container {
      padding: 1rem;
      gap: 1.5rem;
    }
  
    .contact-card {
      max-width: 100%;
    }
  
    .icon-text {
      flex-direction: column;
    }
  }
  
  @media (max-width: 320px) {
    .header {
      flex-direction: row;
      justify-content: space-between;
      padding: 0.4rem 0.5rem;
    }
  
    .logo-container {
      margin-left: 0;
      padding-left: 5px;
      max-width: 100px;
    }
  
    .logo {
      max-width: 100%;
      height: auto;
    }
  
    .boton-btn {
      font-size: 0.65rem;
      padding: 6px 10px;
      border-radius: 4px;
    }
  
    .card {
      padding: 0.5rem;
      font-size: 0.9rem;
    }
  
    h2 {
      font-size: 1rem;
    }
  
    .footer-container {
      padding: 0.5rem;
      gap: 1rem;
      text-align: center;
    }
  
    .icon-text {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
  
    .contact-card {
      max-width: 100%;
    }
  
    .icon {
      width: 28px;
      height: 28px;
    }
  }
  