/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 880px; /* Cambiado de 1200px a 680px */
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #0099a8;
    color: white;
    border: 2px solid #0099a8;
}

.btn-primary:hover {
    background-color: #007a87;
    border-color: #007a87;
}

.btn-login {
    background-color: transparent;
    color: #0099a8;
    border: 2px solid #0099a8;
}

.btn-login:hover {
    background-color: #0099a8;
    color: white;
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
}

/* Menu de navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0099a8;
}

.btn-login {
    background-color: transparent;
    color: #0099a8;
    border: 2px solid #0099a8;
    padding: 8px 15px;
    font-size: 14px;
    margin-right: 10px;
}

.btn-login:hover {
    background-color: #0099a8;
    color: white;
}

.btn-secondary-nav {
    background-color: #0099a8;
    color: white;
    border: 2px solid #0099a8;
    padding: 8px 15px;
    font-size: 14px;
}

.btn-secondary-nav:hover {
    background-color: #007a87;
    border-color: #007a87;
}

/* Menu hamburguesa */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #0099a8;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('https://ocasa.com/img/fotos/slider1-.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Cambiado de center a flex-end para alinear al bottom */
    position: relative;
    color: white;
    text-align: left;
    padding: 0 20px;
}

/* Soporte para pantallas de alta resolución (2x) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: url('https://ocasa.com/img/fotos/slider1-.jpg');
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65); /* Aumentado de 0.5 a 0.65 para oscurecer más la imagen */
}

.hero-content {
    position: relative;
    max-width: 600px;
    margin-left: 10%;
    margin-bottom: 120px; /* Aumentado de 80px a 120px para más espacio en móviles */
    color: white; /* Asegurando que el texto sea blanco */
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white; /* Asegurando que el título sea blanco */
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: white; /* Asegurando que el párrafo sea blanco */
}

/* Club Transportista Section */
.club-section {
    padding: 80px 0;
    background-color: white;
}

.club-section h2 {
    text-align: center;
    color: #0099a8;
    margin-bottom: 25px;
    font-size: 28px;
}

.club-section p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.club-image {
    margin: 25px auto;
    text-align: center;
}

.club-image img {
    max-width: 100%;
    border-radius: 8px;
}

.evaluation-criteria {
    margin: 30px 0;
}

.evaluation-criteria ul {
    padding-left: 20px;
}

.evaluation-criteria li {
    font-size: 18px;
    margin-bottom: 10px;
}

.cta-text {
    color: #0099a8;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-top: 30px;
}

/* Proveedor del Trimestre Section */
.provider-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.provider-section h2 {
    text-align: center;
    color: #0099a8;
    margin-bottom: 25px;
    font-size: 28px;
}

.provider-section p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.provider-image {
    margin: 25px auto;
    text-align: center;
}

.provider-image img {
    max-width: 100%;
    border-radius: 8px;
}

.providers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.provider-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #0099a8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.provider-card h3 {
    color: #0099a8;
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.provider-card p {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-weight: normal;
}

.congrats-text {
    margin-top: 30px;
}

.congrats-text strong {
    color: #0099a8;
}

/* Giftcards Section */
.giftcards-section {
    padding: 80px 0;
    background-color: white;
}

.giftcards-section h2 {
    text-align: center;
    color: #0099a8;
    margin-bottom: 25px;
    font-size: 28px;
}

.giftcards-section p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.giftcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.giftcard-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.giftcard-item:hover {
    transform: translateY(-5px);
}

.giftcard-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 60px 0 20px;
    color: #333;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #666;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #0099a8;
}

.tracking-form {
    display: flex;
    margin-top: 15px;
}

.tracking-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.tracking-form button {
    background-color: #0099a8;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #666;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #0099a8;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-column {
        flex-basis: calc(50% - 20px);
    }
}

/* Responsive para tablet y móvil */
@media (max-width: 768px) {
    /* Navbar móvil */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 15px;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }
    
    .btn-login, .btn-secondary-nav {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    /* Hero responsive */
    .hero {
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
        margin-bottom: 150px; /* Más espacio en móviles */
    }
    
    .providers-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .provider-card {
        width: 100%;
        max-width: 300px;
    }
    
    .giftcards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .club-section h2,
    .provider-section h2,
    .giftcards-section h2 {
        font-size: 24px;
    }
    
    .club-section p,
    .provider-section p,
    .giftcards-section p,
    .evaluation-criteria li {
        font-size: 16px;
    }
    
    .cta-text {
        font-size: 20px;
    }
}

/* Secciones de contenido */
.club-section .container,
.provider-section .container,
.giftcards-section .container {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

/* Para elementos que necesitan alineación a la izquierda dentro de las secciones */
.club-section p,
.provider-section p,
.evaluation-criteria,
.evaluation-criteria ul {
    text-align: left;
}

/* Botón secundario */
.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: white;
    color: #0099a8;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background-color: #0099a8;
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    opacity: 0.7;
    text-decoration: none;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0099a8;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-cancel:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-submit {
    background-color: #0099a8;
    color: white;
    border: 2px solid #0099a8;
}

.btn-submit:hover {
    background-color: #007a87;
    border-color: #007a87;
}

.btn-submit:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive para modal */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center; /* Centrar en móviles */
        gap: 15px; /* Aumentar espacio entre botones */
        margin-bottom: 30px; /* Agregar espacio extra debajo */
    }
    
    .btn-secondary {
        margin-left: 0;
        width: 100%; /* Botones de ancho completo en móviles */
        max-width: 280px; /* Límite máximo de ancho */
    }
    
    .btn-primary {
        width: 100%; /* Botón principal también de ancho completo */
        max-width: 280px;
    }
}

/* Checkbox personalizado para términos y condiciones */
.checkbox-group {
    margin: 25px 0 !important;
}

.checkbox-group .form-group {
    margin-bottom: 0; /* Evitar doble margen */
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    gap: 10px;
    width: 100%; /* Asegurar que tome todo el ancho */
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px; /* Asegurar ancho mínimo */
    min-height: 20px; /* Asegurar alto mínimo */
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Incluir borde en el tamaño */
    background-color: white; /* Fondo blanco explícito */
    display: inline-block; /* Asegurar que se muestre como bloque */
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #0099a8;
    border-color: #0099a8;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

/* Contenedor del texto del checkbox */
.checkbox-label span:not(.checkmark) {
    flex: 1; /* Tomar el espacio restante */
}

.link-terminos {
    color: #0099a8;
    text-decoration: underline;
    font-weight: 500;
}

.link-terminos:hover {
    color: #007a87;
}

/* Modal de términos y condiciones */
.modal-terminos {
    max-width: 700px;
    max-height: 80vh;
}

.terminos-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.terminos-content p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.6;
}

.terminos-content strong {
    color: #0099a8;
}

.terminos-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.close-terminos {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-terminos:hover,
.close-terminos:focus {
    opacity: 0.7;
    text-decoration: none;
}

/* Estilos para botón deshabilitado */
.btn-submit:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.btn-submit:disabled:hover {
    background-color: #ccc !important;
    border-color: #ccc !important;
}

/* Responsive para modal de términos */
@media (max-width: 768px) {
    .modal-terminos {
        width: 95%;
        max-height: 90vh;
    }
    
    .terminos-content {
        max-height: 300px;
    }
    
    .terminos-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
}