/* Down Las Palmas - Landing */
:root {
    --azul: #0085ca;
    --amarillo: #ffc60b;
    --blanco: #ffffff;
    --negro: #1a1a1a;
    --gris: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo flotante */
.logo-flotante {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1000;
    display: block;
    transition: transform 0.2s;
}

.logo-flotante:hover {
    transform: scale(1.05);
}

.logo-flotante img {
    height: 50px;
    width: auto;
}

/* Hero / Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 133, 202, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    max-width: 600px;
}

.hero-subtitle {
    color: var(--blanco);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
    background: var(--amarillo);
    color: var(--negro);
    margin-top: 1rem;
}

.btn-secondary {
    background: var(--amarillo);
    color: var(--negro);
}

.btn-footer {
    background: var(--amarillo);
    color: var(--negro);
    margin-top: 1rem;
}

/* Indicadores del slider */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 4;
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--blanco);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.indicator:hover,
.indicator.active {
    background: var(--amarillo);
    border-color: var(--amarillo);
}

/* Bloque 1: Formulario */
.block-form {
    background: var(--blanco);
    padding: 4rem 0;
}

.block-form h2 {
    text-align: center;
    color: var(--negro);
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.form-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

.tab-btn:first-child {
    background: var(--azul);
    color: var(--blanco);
}

.tab-btn:nth-child(2) {
    background: var(--amarillo);
    color: var(--negro);
}

.tab-btn:nth-child(3) {
    background: #e0e0e0;
    color: var(--negro);
}

.tab-btn.active {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn:nth-child(3).active {
    background: var(--gris);
    color: var(--blanco);
}

.donation-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gris);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--azul);
}

.btn-submit {
    margin-top: 0.5rem;
}

/* Redsys inSite - formulario de tarjeta */
.redsys-card-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.redsys-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gris);
}

#card-form {
    min-height: 200px;
}

.redsys-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gris);
}

.redsys-msg.error {
    color: #c00;
}

.redsys-msg.success {
    color: #080;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Bloque 2: Campaña */
.block-campaign {
    background: var(--amarillo);
    padding: 4rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.campaign-text p {
    margin-bottom: 1rem;
    color: var(--negro);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bloque 3: Servicios */
.block-services {
    background: var(--blanco);
    padding: 4rem 0;
}

.services-content ul {
    list-style: none;
    margin-top: 1rem;
}

.services-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.services-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--azul);
    font-weight: bold;
}

.services-image img {
    width: 100%;
    height: auto;
    border-radius: 0 16px 0 0;
    object-fit: cover;
}

/* Bloque 4: CTA */
.block-cta {
    background: var(--azul);
    padding: 4rem 0;
}

.block-cta .cta-content {
    text-align: center;
}

.cta-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: var(--blanco);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.cta-r21 {
    margin-top: 2rem;
    height: 40px;
    width: auto;
}

/* Footer */
.footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: start;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-info a {
    color: var(--blanco);
    text-decoration: none;
}

.footer-info a:hover {
    color: var(--amarillo);
}

.footer-mission {
    text-align: right;
}

.footer-mission p {
    margin-bottom: 1rem;
    max-width: 280px;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .services-image {
        order: -1;
    }
    
    .services-image img {
        border-radius: 16px 16px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-mission {
        text-align: center;
    }
    
    .footer-mission p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .logo-flotante img {
        height: 40px;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        min-width: 100%;
    }
}
