:root {
    --rojo: #a90000;
    --rojo-hover: #800000;
    --gris-fondo: #f4f4f4;
    --gris-oscuro: #333;
    --blanco: #ffffff;
}

/* General */ 
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Figtree', sans-serif;
    overflow-x: hidden;
    justify-content: center;
    min-height: 100vh; /* Asegura que ocupe toda la altura de la ventana */

    
  }


  
  /* Encabezado transparente */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    height: 60px;
  }
  
  #header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
  }
  
  #logo img {
    height: 50px;
  }
  
  #mainNav ul {
    display: flex;
    list-style: none;
    gap: 40px;
  }
  
  #mainNav a {
    color: #2b2b2b;
    font-size: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
    text-decoration: none;
    position: relative;
  }
  
  #mainNav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #890000;
    transition: width 0.3s ease;
  }
  
  #mainNav a:hover::after {
    width: 100%;
  }
  
  #header.scrolled #mainNav a {
    color: #333;
  }
  
  
  /* The Overlay (background) */
  .overlay-movil {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */   
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
  }
  
  /* Position the content inside the overlay */
  .overlay-movil-content {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
  }
  
  /* The navigation links inside the overlay */
  .overlay-movil a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
  }
  
  /* When you mouse over the navigation links, change their color */
  .overlay-movil a:hover, .overlay-movil a:focus {
    color: #f1f1f1;
  }
  
  /* Position the close button (top right corner) */
  .overlay-movil .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
    color: rgb(255, 255, 255);
  }
  
  
  
  /* Estilo del botón hamburguesa */
  button-menu {  
    display: none;
    font-size: 24px;
    color: #ffffff; /* Color del ícono */
    background-color: #6f0000; /* Fondo del botón */
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  button-menu:hover {
    background-color: #a80000; /* Fondo al pasar el mouse */
    transform: scale(1.1); /* Efecto de agrandar */
  }
  
  button-menu:focus {
    outline: none; /* Elimina el borde al hacer clic */
  }
  
  
  
  @media screen and (max-width: 500px) {
  
    #header {    
      height: 50px;
    }
  
    #logo img {
      height: 35px;
    }
  
    #mainNav{
      display: none !important; /* Oculta las secciones */
    }
  
    .overlay-movil a {font-size: 20px}
    .overlay-movil .closebtn {
      font-size: 40px;
      top: 15px;
      right: 35px;
    }
  
    button-menu{
      display: block;
    }
  }
  




  
/* Intro */
.intro-section {
    padding: 140px 20px 60px;
    background-color: var(--gris-fondo);
    text-align: center;
}

.intro-section h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 800;
}

.red-line {
    width: 60px;
    height: 4px;
    background: var(--rojo);
    margin: 15px auto;
}

/* Tabs Wrapper */
.wrapper { padding: 40px 0; }

.content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Switcher de Pestañas */
.taeb-switch {
    display: flex;
    background: var(--gris-fondo);
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 5px;
    border: 1px solid #ddd;
    overflow-x: auto; /* Para móviles */
}

.taeb {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
    color: #666;
    min-width: 110px;
}

.taeb i { display: block; font-size: 1.4rem; margin-bottom: 5px; }
.taeb span { font-size: 13px; font-weight: 700; text-transform: uppercase; }

.taeb.active {
    background: var(--rojo);
    color: var(--blanco);
}

/* Contenido */
.tabs-content {
    background: var(--blanco);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.tabs-content article { display: none; }
.tabs-content article.active { display: block; animation: fadeIn 0.5s; }

.tab-content-body {
    display: flex;
    gap: 40px;
    align-items: center;
}

.image-container { flex: 1; }
.image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.info { flex: 1; }
.info h3 {
    color: var(--rojo);
    font-size: 2rem;
    margin-top: 0;
}

.info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.btn-servicios {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--rojo);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-servicios:hover { background: var(--rojo-hover); }

/* Menú Móvil */
.button-menu {
    display: none;
    background: var(--rojo);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
    .tab-content-body { flex-direction: column; }
    .image-container, .info { width: 100%; }
    .button-menu { display: block; }
    .nav-links { display: none; }
    .intro-section h1 { font-size: 1.8rem; }
}