/* Estilos para Torifa Landing Page */

/* Reset y base */
.tosuerte-landing {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.torifa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.torifa-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Overlay para mejorar legibilidad */
.torifa-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Fondo parallax */
.torifa-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
}

/* Patrón de textura sutil */
.torifa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 2;
}

.torifa-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.torifa-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.torifa-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Contador */
.torifa-countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.torifa-countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    min-width: 100px;
}

.torifa-countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.torifa-countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.torifa-date {
    font-size: 1.1rem;
    background: rgba(255,255,255,0.2);
    padding: 15px 30px;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Main Section */
.torifa-main {
    padding: 80px 0;
    background: #f8f9fa;
}

.torifa-section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c3e50;
}

.torifa-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.torifa-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.torifa-step:hover {
    transform: translateY(-5px);
}

.torifa-step-number {
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.torifa-step-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.torifa-step-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Cuadrícula de números */
.torifa-numbers-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.torifa-numbers-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8rem;
}

.torifa-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
}

.torifa-number {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1rem;
}

.torifa-number:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

.torifa-number.selected {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.torifa-number.unavailable {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Sección del Premio - Nuevo Layout */
.torifa-prize {
    padding: 80px 0;
    background: #fafafa;
}

/* Grid para premios múltiples - Diseño profesional y limpio */
.torifa-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.torifa-prize-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.torifa-prize-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.torifa-prize-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.torifa-prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.torifa-prize-card:hover .torifa-prize-image img {
    transform: scale(1.08);
}

.torifa-prize-content {
    padding: 28px 24px;
    text-align: center;
    background: #ffffff;
}

.torifa-prize-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.torifa-prize-description {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.torifa-prize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

/* Columna de Información */
.torifa-prize-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.torifa-prize-header {
    text-align: center;
    margin-bottom: 20px;
}

.torifa-prize-header h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.torifa-prize-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

/* Columna de Galería */
.torifa-prize-gallery-column {
    position: relative;
}

.torifa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    height: 100%;
}

.torifa-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: #f8f9fa;
    aspect-ratio: 1;
}

.torifa-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.torifa-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.torifa-gallery-item:hover img {
    transform: scale(1.1);
}

.torifa-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.torifa-gallery-item:hover .torifa-gallery-overlay {
    opacity: 1;
}

.torifa-zoom-icon {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Modal de Imágenes */
.torifa-image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: torifa-fadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes torifa-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.torifa-image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.torifa-image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.torifa-image-modal-close:hover {
    color: #ff6b6b;
}

.torifa-image-modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.torifa-image-modal-container img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: torifa-zoomIn 0.3s ease;
    object-fit: contain;
}

@keyframes torifa-zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.torifa-image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.torifa-modal-nav-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.torifa-modal-nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.torifa-image-modal-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Footer */
.torifa-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
}

.torifa-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.torifa-contact h4 {
    margin-bottom: 20px;
    color: #ecf0f1;
}

.torifa-contact a {
    color: #3498db;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.torifa-contact a:hover {
    color: #5dade2;
}

.torifa-legal {
    text-align: right;
}

.torifa-legal small {
    color: #bdc3c7;
    line-height: 1.5;
}

/* Modal */
.torifa-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.torifa-modal-large .torifa-modal-content {
    max-width: 80%;
    width: 80%;
}

.torifa-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin: 0;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    overflow: hidden; /* Para que el overlay no se salga */
}

.torifa-modal.show .torifa-modal-content {
    transform: scale(1);
    opacity: 1;
}

.torifa-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.torifa-modal-close:hover {
    color: #000;
}

.torifa-modal h3 {
    margin-top: 0;
    color: #2c3e50;
}

.torifa-modal-body p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Estilos para el formulario del modal */
.torifa-user-form {
    margin: 20px 0;
}

/* Efecto de "Enviado" */
.torifa-sending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1001;
    border-radius: 15px;
}

.torifa-sending-overlay.active {
    display: flex;
}

.torifa-sending-content {
    text-align: center;
    padding: 40px;
}

.torifa-sending-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: torifa-spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.torifa-success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    opacity: 0;
    transform: scale(0.5);
    animation: torifa-success-pop 0.6s ease-out forwards;
}

.torifa-success-icon::after {
    content: '✓';
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.torifa-sending-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.torifa-sending-subtext {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.4;
}

@keyframes torifa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes torifa-success-pop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Estados de los botones durante el envío */
.torifa-payment-btn.sending {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
    cursor: not-allowed;
}

.torifa-payment-btn.sending::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: torifa-spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Mejorar la visibilidad del overlay en diferentes fondos */
.torifa-sending-overlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Animación de entrada del overlay */
.torifa-sending-overlay.active {
    animation: torifa-overlay-fade-in 0.3s ease-out;
}

@keyframes torifa-overlay-fade-in {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(2px);
    }
}

.torifa-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.torifa-form-group {
    flex: 1;
    min-width: 0; /* Permite que flex funcione correctamente */
}

.torifa-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.torifa-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.torifa-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.torifa-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Botones */
.torifa-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.torifa-btn-primary {
    background: #667eea;
    color: white;
}

.torifa-btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.torifa-btn-secondary {
    background: #6c757d;
    color: white;
}

.torifa-btn-secondary:hover {
    background: #5a6268;
}

/* Estilos para Shortcodes */
.torifa-countdown-shortcode {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.torifa-countdown-shortcode .torifa-countdown-item {
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.torifa-countdown-shortcode .torifa-countdown-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.torifa-countdown-shortcode .torifa-countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.torifa-date-shortcode {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    color: #666;
}

.torifa-numbers-shortcode {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    overflow-y: auto;
    background: white;
}

.torifa-numbers-grid-shortcode {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.torifa-number-shortcode {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1rem;
}

.torifa-number-shortcode:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

.torifa-number-shortcode.selected {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.torifa-number-shortcode.unavailable {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    cursor: not-allowed;
    opacity: 0.6;
}

.torifa-countdown-finished {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    padding: 20px;
    background: #d4edda;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
}

/* Estilos para selección múltiple */
.torifa-selection-counter {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1976d2;
}

.torifa-continue-button {
    width: 100%;
    margin-top: 20px;
    font-size: 1.2rem;
    padding: 15px 30px;
}

/* Estilos para modal de confirmación */
.torifa-selection-summary {
    margin-bottom: 30px;
}

.torifa-numbers-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
}

.torifa-numbers-list li {
    padding: 8px 12px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    font-weight: 500;
}

.torifa-total-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.torifa-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.torifa-total-row {
    border-top: 2px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.3rem;
    color: #2c3e50;
}

/* Estilos para opciones de pago */
.torifa-payment-options {
    margin: 30px 0;
}

.torifa-payment-options h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.torifa-payment-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.torifa-payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.torifa-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.torifa-btn-paypal {
    background: linear-gradient(135deg, #0070ba, #003087);
    color: white;
}

.torifa-btn-paypal:hover {
    background: linear-gradient(135deg, #005ea6, #002d6b);
}

.torifa-btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.torifa-btn-whatsapp:hover {
    background: linear-gradient(135deg, #1ea851, #0f6b5f);
}

.torifa-icon {
    font-size: 1.3rem;
}

/* Toast notifications */
.torifa-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.torifa-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.torifa-toast-warning {
    background: #ff9800;
}

.torifa-toast-error {
    background: #f44336;
}

.torifa-toast-success {
    background: #4caf50;
}

/* Efectos adicionales para el hero con imagen de fondo */
.torifa-hero[style*="background-image"] {
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.torifa-hero[style*="background-image"] .torifa-hero-background {
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Animación de entrada para el contenido del hero */
.torifa-hero-content {
    animation: torifa-fadeInUp 1s ease-out;
}

@keyframes torifa-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de desvanecimiento suave al hacer scroll */
.torifa-hero {
    transition: opacity 0.3s ease;
}

/* Mejoras para dispositivos táctiles */
@media (max-width: 1024px) {
    .torifa-hero {
        background-attachment: scroll;
    }
    
    .torifa-hero-background {
        background-attachment: scroll;
    }
    
    /* Ajustes para formulario en tablets */
    .torifa-modal-large .torifa-modal-content {
        max-width: 85%;
        width: 85%;
    }
    
    .torifa-form-row {
        gap: 18px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .torifa-hero {
        min-height: 80vh;
        background-attachment: scroll; /* Desactivar parallax en móviles para mejor rendimiento */
    }
    
    .torifa-title {
        font-size: 2.5rem;
    }
    
    .torifa-countdown {
        gap: 15px;
    }
    
    .torifa-countdown-item {
        padding: 15px;
        min-width: 80px;
    }
    
    .torifa-countdown-number {
        font-size: 2rem;
    }
    
    .torifa-steps {
        grid-template-columns: 1fr;
    }
    
    .torifa-prize-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Responsive para premios múltiples */
    .torifa-prizes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        margin: 40px 0;
    }
    
    .torifa-prize-card {
        border-radius: 14px;
    }
    
    .torifa-prize-image {
        height: 200px;
    }
    
    .torifa-prize-content {
        padding: 24px 20px;
    }
    
    .torifa-prize-title {
        font-size: 1.25rem;
    }
    
    .torifa-prize-description {
        font-size: 0.95rem;
    }
    
    .torifa-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .torifa-gallery-item {
        aspect-ratio: 16/9;
    }
    
    .torifa-prize-header h3 {
        font-size: 2rem;
    }
    
    .torifa-prize-description {
        font-size: 1.1rem;
    }
    
    .torifa-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .torifa-legal {
        text-align: center;
    }
    
    .torifa-numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .torifa-number {
        padding: 10px 5px;
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .torifa-container {
        padding: 0 15px;
    }
    
    .torifa-hero {
        padding: 60px 0;
    }
    
    .torifa-title {
        font-size: 2rem;
    }
    
    .torifa-subtitle {
        font-size: 1.1rem;
    }
    
    .torifa-countdown {
        gap: 10px;
    }
    
    .torifa-countdown-item {
        padding: 10px;
        min-width: 70px;
    }
    
    .torifa-countdown-number {
        font-size: 1.5rem;
    }
    
    .torifa-modal-actions {
        flex-direction: column;
    }
    
    .torifa-modal {
        padding: 10px;
    }
    
    .torifa-modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .torifa-modal-large .torifa-modal-content {
        max-width: 95%;
        width: 95%;
    }
    
    /* Responsive para formulario en móviles */
    .torifa-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .torifa-form-group {
        min-width: auto;
    }
}

/* Estilos para el carrusel de premios */
.torifa-prize-gallery {
    position: relative;
    margin-bottom: 30px;
}

.torifa-carousel-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.torifa-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.torifa-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.torifa-carousel-slide.active {
    opacity: 1;
}

.torifa-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.torifa-carousel-prev,
.torifa-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.torifa-carousel-prev:hover,
.torifa-carousel-next:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.torifa-carousel-prev {
    left: 15px;
}

.torifa-carousel-next {
    right: 15px;
}

.torifa-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.torifa-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.torifa-carousel-indicator.active {
    background: white;
}

.torifa-carousel-indicator:hover {
    background: rgba(255,255,255,0.7);
}

.torifa-prize-info {
    padding: 20px;
}

.torifa-prize-value {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #000000;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.torifa-prize-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 25px;
    z-index: -1;
}

.torifa-prize-value::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.1));
    border-radius: 25px;
    z-index: -2;
    animation: torifa-border-shimmer 4s ease-in-out infinite;
}

@keyframes torifa-border-shimmer {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.torifa-value-label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #2c3e50;
    text-shadow: 
        0 2px 4px rgba(255,255,255,0.8),
        0 0 8px rgba(255,255,255,0.5);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.torifa-value-amount {
    font-size: 3.2rem;
    font-weight: 900;
    color: #1a1a1a;
    text-shadow: 
        0 4px 8px rgba(255,255,255,0.9),
        0 0 16px rgba(255,255,255,0.6),
        0 0 32px rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
    letter-spacing: -1px;
    line-height: 1.1;
}

.torifa-prize-specifications {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.torifa-prize-specifications h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.torifa-specs-content {
    line-height: 1.6;
    color: #666;
}

.torifa-prizes-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.torifa-prize-type {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    
    transition: transform 0.3s ease;
}

.torifa-prize-type:hover {
    transform: translateY(-5px);
}

.torifa-prize-type h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.torifa-prize-type p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.torifa-rifa-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-top: 30px;
}

.torifa-rifa-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.torifa-rifa-header h4 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.torifa-rifa-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.torifa-rifa-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.torifa-rifa-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.torifa-rifa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.torifa-rifa-card:hover::before {
    transform: scaleX(1);
}

.torifa-rifa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.torifa-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.torifa-card-content {
    text-align: center;
}

.torifa-card-content h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.torifa-card-value {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.torifa-currency {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
}

.torifa-card-content small {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
    display: block;
}

/* Variantes de colores para las tarjetas */
.torifa-card-primary {
    border-left: 4px solid #667eea;
}

.torifa-card-primary .torifa-card-icon {
    color: #667eea;
}

.torifa-card-success {
    border-left: 4px solid #28a745;
}

.torifa-card-success .torifa-card-icon {
    color: #28a745;
}

.torifa-card-info {
    border-left: 4px solid #17a2b8;
}

.torifa-card-info .torifa-card-icon {
    color: #17a2b8;
}

.torifa-card-warning {
    border-left: 4px solid #ffc107;
}

.torifa-card-warning .torifa-card-icon {
    color: #ffc107;
}

.torifa-rifa-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.torifa-rifa-note {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #2196f3;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.torifa-note-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Responsive para el carrusel */
@media (max-width: 768px) {
    .torifa-carousel {
        height: 300px;
    }
    
    .torifa-carousel-prev,
    .torifa-carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .torifa-carousel-prev {
        left: 10px;
    }
    
    .torifa-carousel-next {
        right: 10px;
    }
    
    .torifa-value-amount {
        font-size: 2.5rem;
    }
    
    .torifa-prize-value {
        padding: 25px;
        border-radius: 20px;
    }
    
    .torifa-value-label {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .torifa-prizes-info {
        grid-template-columns: 1fr;
    }
    
    .torifa-rifa-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .torifa-rifa-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .torifa-rifa-header h4 {
        font-size: 1.5rem;
    }
    
    .torifa-rifa-card {
        padding: 20px;
    }
    
    .torifa-card-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .torifa-carousel {
        height: 250px;
    }
    
    .torifa-carousel-prev,
    .torifa-carousel-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .torifa-prize-value {
        padding: 20px;
        border-radius: 18px;
        margin-bottom: 20px;
    }
    
    .torifa-value-label {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .torifa-value-amount {
        font-size: 2.2rem;
    }
    
    .torifa-rifa-details {
        padding: 20px;
        margin-top: 20px;
    }
    
    .torifa-rifa-header h4 {
        font-size: 1.3rem;
    }
    
    .torifa-rifa-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .torifa-rifa-card {
        padding: 15px;
    }
    
    .torifa-card-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .torifa-card-value {
        font-size: 1.3rem;
    }
    
    .torifa-rifa-note {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .torifa-prize-grid {
        gap: 30px;
    }
    
    .torifa-gallery-grid {
        gap: 10px;
    }
    
    .torifa-prize-header h3 {
        font-size: 1.8rem;
    }
    
    .torifa-prize-description {
        font-size: 1rem;
    }
    
    .torifa-image-modal-container img {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .torifa-image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .torifa-image-modal-info {
        bottom: 10px;
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .torifa-modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Estilos para premios en pantallas pequeñas */
    .torifa-prizes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .torifa-prize-card {
        border-radius: 12px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    }
    
    .torifa-prize-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
    
    .torifa-prize-image {
        height: 180px;
    }
    
    .torifa-prize-content {
        padding: 20px 18px;
    }
    
    .torifa-prize-title {
        font-size: 1.15rem;
    }
    
    .torifa-prize-description {
        font-size: 0.9rem;
    }
}