/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */

html { 
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #F5F4F2;
    overflow-x: hidden;
}

/* ============================================
   HEADER FIJO
   ============================================ */

   .menu-toggle {
    display: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(1, 1, 1, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    opacity: 0.8;
    height: 100px;
}

.logo img {
    height: 100px;
    width: 160px;
    border-radius: 8px;
    object-fit: cover;
}

@media (max-width: 768px) {

.header .logo img {
    height: 50px;
    width: 80px;
    border-radius: 8px;
    object-fit: cover;
}
}


/* Navegación */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 25px;

}

.nav-list li a {
    color: #FF8000;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: uppercase;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-list li a:hover {
    color: #EE3131;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #EE3131;
    transition: width 0.3s ease;
}

.nav-list li a:hover::after {
    width: 100%;
}



/* ============================================
   CARRUSEL CON CONTROLES
   ============================================ */

.carousel {
    position: relative;
    width: 100%;
    height: 650px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-track-container {
    width: 100%;
        height: 100%;
        overflow: hidden; /* ← Esto oculta lo que sobresale */
        position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-item {
    min-width: 100%;
    /*flex-shrink: 0;*/
}

.carousel-item img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    display: block;
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 128, 0, 0.7);
    color: black;
    border: none;
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s eascarousel-track-containere;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: rgba(255, 128, 0, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 128, 0, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Indicadores (puntos) */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background: #FF8000;
    border-color: white;
    transform: scale(1.2);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    /* ===== CARRUSEL - UNIFICAR ALTURAS ===== */
    .carousel {
        position: relative;
        width: 100%;
        height: 300px;
        overflow: hidden;
        border-radius: 0px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .carousel-track-container {
        width: 100%;
        height: 100%;
        overflow: hidden; /* ← Esto oculta lo que sobresale */
        position: relative;
    }

    .carousel-track {
        display: flex;
        height: 100%;
        width: 100%; /* ← Asegura que ocupe todo el ancho */
        transition: transform 0.5s ease-in-out;
        will-change: transform;
        /* IMPORTANTE: NO poner width automático, debe ser 100% */
    }

    .carousel-item {
        min-width: 100%; /* ← Cada item ocupa EXACTAMENTE el 100% */
        height: 100%;
        flex-shrink: 0;
        flex-grow: 0; /* ← Evita que se estiren */
        flex-basis: 100%; /* ← Fuerza que cada item ocupe el 100% */
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}


/* ============================================
   SEPARADORES
   ============================================ */

.card1 hr {
    margin: 30px auto;
    width: 80%;
    border: none;
    border-top: 3px solid #FF8000;
    border-radius: 5px;
}

.Title_ser h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #FF8000;
    margin: 30px 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.Title_ser h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #EE3131;
    margin: 12px auto 0;
    border-radius: 3px;
}

/* ============================================
   CARDS NOSOTROS
   ============================================ */

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    justify-content: center;
}

.cards_item {
    display: flex;
    padding: 0;
    width: calc(33.33% - 20px);
    min-width: 280px;
}

.card {
    background-color: #eeeeee;
    border-radius: 16px;
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card_image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card_content {
    padding: 20px;
    max-height: 320px;
    overflow-y: auto;
}

.card_content::-webkit-scrollbar {
    width: 4px;
}

.card_content::-webkit-scrollbar-thumb {
    background: #EE3131;
    border-radius: 15px;
}

.card_title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF8000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    position: relative;
}

.card_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #FF8000;
}

.card_text p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: justify;
}

.card_text hr {
    margin: 15px 0;
    border: none;
    border-top: 2px solid #EE3131;
    width: 50px;
    margin: 15px auto;
}

/* ============================================
   CARDS PRODUCTOS
   ============================================ */

.card-containerser {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.cardser {
    width: 280px;
    background: #eeeeee;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 450px;
    overflow-y: auto;
}

.cardser:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(238, 49, 49, 0.2);
}

.cardser::-webkit-scrollbar {
    width: 4px;
}

.cardser::-webkit-scrollbar-thumb {
    background: #EE3131;
    border-radius: 15px;
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    text-align: center;
    font-size: 1.2rem;
    color: #FF8000;
    margin-bottom: 10px;
}

.card-content hr {
    width: 60px;
    margin: 10px auto;
    border: none;
    border-top: 2px solid #EE3131;
}

.card-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 8px;
}

/* ============================================
   CONTACTO - DOS COLUMNAS
   ============================================ */

.container_contact {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.columncont {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-container h2, .form-container h2 {
    text-align: center;
    color: #FF8000;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.contact-item i {
    font-size: 1.3rem;
    color: #EE3131;
    width: 30px;
}

.map-container iframe {
    width: 100%;
    border-radius: 12px;
    margin-top: 15px;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF8000;
}

.submit-btn {
    background-color: #FF8000;
    color: black;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #EE3131;
}

/* ============================================
   MODAL
   ============================================ */

.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal h2 {
    color: #28A745;
    margin-bottom: 15px;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
}

.modal .close:hover {
    color: #EE3131;
}

/* ============================================
   FOOTER Y REDES SOCIALES
   ============================================ */

footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.wrapper h2 {
    color: #FF8000;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.wrapper .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #333;
    border-radius: 50%;
    margin: 0 8px;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s;
    text-decoration: none;
}

.wrapper .icon:hover {
    transform: translateY(-3px);
}

.wrapper .facebook:hover { background: #3b5999; }
.wrapper .instagram:hover { background: #e1306c; }
.wrapper .youtube:hover { background: #de463b; }
.wrapper .what:hover { background: #25D366; }

/* ============================================
   BOTÓN VOLVER ARRIBA
   ============================================ */

.button-arriba {
    position: fixed;
    bottom: 30px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FF8000;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button-arriba.shows {
    opacity: 1;
    visibility: visible;
    bottom: 100px;  
}

.button-arriba:hover {
    background-color: #EE3131;
    transform: scale(1.1);
}

.button-arriba .item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.button-arriba i {
    font-size: 1.3rem;
}

/

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .cards_item {
        width: calc(50% - 20px);
    }
    
    .cardser {
        width: calc(33.33% - 20px);
    }
    
    .carousel-track-container {
        height: 400px;

    }
}




/* ============================================
   UTILIDADES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}




/* ============================================ 
   MENÚ HAMBURGUESA + RESPONSIVE -
   ============================================ */

@media (max-width: 768px) {
    /* ===== HEADER ===== */
    .header {
        padding: 8px 15px;
        opacity: 0.8;
        width: 100%;
        height: 60px;
    }
    
    /* ===== BOTÓN DEL MENÚ ===== */
    .menu-toggle {
        display: block !important;
        background: transparent !important;
        border: none !important;
        font-size: 1.5rem !important;
        color: #FF8000  !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
    }
    
    /* ===== CONTENEDOR DEL MENÚ - OCULTO POR DEFECTO ===== */
    .nav-list {
        display: none !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        background: #1a1a1a !important;
        width: 100% !important;
        padding: 15px !important;
        margin: 0 !important;
        z-index: 10000 !important;
        text-align: center !important;
        flex-direction: column !important;
        gap: 10px !important;
        border-top: 2px solid #FF8000 !important;
        opacity: 1;

    }
    
    /* ===== MENÚ ABIERTO ===== */
    .nav-list.active {
        display: flex !important;

    }
    
    /* ===== ÍTEMS DEL MENÚ ===== */
    .nav-list li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        border-left: #FF8000;

    }
    
    /* ===== ENLACES DEL MENÚ ===== */
    .nav-list li a {
        display: block !important;
        color: #FF8000 !important;
        background: #333 !important;
        font-size: 1rem !important;
        padding: 10px !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        font-weight: bold !important;


    }
    
    /* ===== HOVER ENLACES ===== */
    .nav-list li a:hover {
      /*  background: #FF8000 !important;*/
        color: #FF8000!important;

    }
    
    /* ===== CARRUSEL ===== */
    .carousel {
        margin-top: 0px;

    }
    
  
    
    /* ===== TÍTULOS ===== */
    .Title_ser h2 {
        font-size: 1.8rem;
    }
    
    /* ===== CARDS NOSOTROS ===== */
    .cards_item {
        width: calc(100% - 20px);
    }
    
    .card_content {
        max-height: 280px;
    }
    
    /* ===== CARDS PRODUCTOS ===== */
    .card-containerser {
        gap: 15px;
        padding: 15px;
    }
    
    .cardser {
        width: calc(50% - 15px);
        min-width: 95%;
    }
    
    .card-image img {
        height: 140px;
    }
    
    /* ===== CONTACTO ===== */
    .container_contact {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .columncont {
        min-width: auto;
        padding: 20px;
    }
    
    .map-container iframe {
        height: 180px;
    }
    
    /* ===== FOOTER ===== */
    footer {
        padding: 20px 15px;
    }
    
    .wrapper .icon {
        width: 42px;
        height: 42px;
        margin: 0 6px;
    }
    
    /* ===== BOTÓN VOLVER ARRIBA ===== */
    .button-arriba {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


/* ============================================
   AVISO DE PRIVACIDAD Y CHECKBOX
   ============================================ */

.checkbox-privacy {
    margin: 15px 0 10px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #FF8000;
}

.checkbox-wrapper label {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #666666;
    cursor: pointer;
}

.checkbox-wrapper label a {
    color: #FF8000;
    text-decoration: underline;
    cursor: pointer;
}

.checkbox-wrapper label a:hover {
    color: #e67300;
}

.checkbox-wrapper .privacy-text {
    display: block;
    font-size: 0.75rem;
    color: #666666;
    margin-top: 3px;
}

/* Botón de enviar deshabilitado */
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666 !important;
}

.submit-btn:disabled:hover {
    transform: none !important;
    background: #666 !important;
}