/**
 * Tarjetas Santillana - Estilos principales
 * Author: Nexbu
 */
 
 
@font-face {
    font-family: 'LastChristmas';
    src: url('../fonts/LastChristmasPERSONALUSE-Regular.woff2') format('woff2'),
         url('../fonts/LastChristmasPERSONALUSE-Regular.woff') format('woff'),
         url('../fonts/LastChristmasPERSONALUSE-Regular.ttf') format('truetype'),
         url('../fonts/LastChristmasPERSONALUSE-Regular.svg#LastChristmas') format('svg');
    font-weight: normal;
    font-style: normal;
}


/* Portada */
.tarjetas-santillana-portada {
    padding: 20px;
    max-width: 100% !important;
}

.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tarjeta-item {
    text-align: center;
}

.tarjeta-item a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.tarjeta-item a:hover {
    transform: scale(1.05);
}

.tarjeta-item img {
    width: 100%;
    height: auto;
    
}

/* Play */
.tarjetas-santillana-play {
    padding: 20px;
    max-width: 100% !important;
}

.play-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Preview de la Tarjeta */
.play-preview {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.tarjeta-preview {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.tarjeta-content {
    width: 100%;
    color: #333;
}

.tarjeta-nombre {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.tarjeta-mensaje {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    word-wrap: break-word;
}

.tarjeta-pregunta {
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    word-wrap: break-word;
}

/* Formulario */
.play-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.play-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #45a049;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Validación de errores */
input.error,
textarea.error,
select.error {
    border-color: #f44336 !important;
}

.error-message {
    display: block;
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .play-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .play-preview {
        position: relative;
        top: 0;
    }
    
    .tarjeta-preview {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Resume */
.tarjetas-santillana-resume {
    padding: 20px;
    max-width: 100% !important;
}

.resume-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.tarjeta-preview-centered {
    margin: 30px auto;
    max-width: 500px;
}

.tarjeta-preview-centered .tarjeta-preview {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.resume-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    color: white;
}

.btn-secondary {
    background: #2196F3;
    color: white;
}

.btn-secondary:hover {
    background: #0b7dda;
    color: white;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.success-message h2 {
    margin-top: 0;
    color: #155724;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}





/* Modal WhatsApp*/
.whatsapp-preload{
    background:rgba(18, 140, 126, 0.95);
    color:#fff;
    display:none;
    font-size:36px;
    font-family: "Quicksand", Sans-serif;
    font-weight:500;
    height:100%;
    left:0;
    position:fixed;
    text-align:center;
    top:0;
    width:100%;
    z-index:999;
}
.whatsapp-content{
    margin:20% auto 0 auto;
    width:480px;
}
.whatsapp-enviando{}
.whatsapp-enviado{
    display:none;
}
.whatsapp-enviado-error{
    display:none;}