/* ================================================
   UNIÓN ÁRABE DE BENEFICENCIA - Landing Page
   Colores institucionales:
   - Verde: #5d9255
   - Rojo: #bf2726
   - Blanco: #fefefe
================================================ */

/* === CSS Variables === */
:root {
    --color-primary: #5d9255;
    --color-primary-dark: #4a7a44;
    --color-primary-light: #6ba362;
    --color-secondary: #bf2726;
    --color-secondary-dark: #9a1f1e;
    --color-secondary-light: #d94544;
    --color-white: #fefefe;
    --color-off-white: #f9f9f7;
    --color-dark: #1a1a1a;
    --color-gray: #555;
    --color-gray-light: #888;
    --color-gold: #d4a84b;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

strong {
    font-weight: 600;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn--primary {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    box-shadow: 0 4px 20px rgba(191, 39, 38, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(191, 39, 38, 0.45);
    background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
}

.btn--primary:active {
    transform: translateY(0);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(93, 146, 85, 0.92) 0%,
        rgba(74, 122, 68, 0.94) 50%,
        rgba(45, 75, 42, 0.96) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__logo {
    width: 160px;
    height: 160px;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.2s both;
    filter: drop-shadow(0 6px 25px rgba(0, 0, 0, 0.3));
}

.hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 0.4s both;
    line-height: 1.1;
}

.hero__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.hero__subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero .btn {
    animation: fadeIn 1s ease-out 0.8s both;
}

.hero__secure {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeIn 1s ease-out 1s both;
}

.hero__secure svg {
    opacity: 0.8;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    z-index: 10;
    animation: fadeIn 1s ease-out 1.2s both;
}

.hero__scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* === Story Section === */
.story {
    padding: 5rem 2rem;
    background: var(--color-off-white);
}

.story__container {
    max-width: 700px;
    margin: 0 auto;
}

.story__quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    font-style: italic;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.story__quote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.story__content {
    margin-bottom: 2.5rem;
}

.story__text {
    font-size: 1.0625rem;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.story__text:last-child {
    margin-bottom: 0;
}

.story__text strong {
    color: var(--color-dark);
}

.story__text em {
    color: var(--color-primary);
    font-style: normal;
    font-weight: 500;
}

.story__divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin: 2.5rem auto;
    border-radius: 2px;
}

.story__cta {
    text-align: center;
}

.story__cta-text {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.story__cta .btn {
    margin-bottom: 1.25rem;
}

.story__thanks-link {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    transition: all var(--transition-base);
    margin-top: 1rem;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.story__thanks-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* === Footer === */
.footer {
    padding: 3rem 2rem;
    background: var(--color-dark);
    color: var(--color-white);
}

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

.footer__logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

.footer__text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer__text strong {
    color: var(--color-white);
    font-weight: 500;
}

.footer__copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__social {
    margin: 1.5rem 0;
}

.footer__social-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.footer__instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--color-white);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 12px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.footer__instagram:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4);
}

.footer__instagram svg {
    width: 28px;
    height: 28px;
}

/* === Responsive === */
@media (max-width: 480px) {
    .hero__logo {
        width: 120px;
        height: 120px;
    }
    
    .hero__content {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .story {
        padding: 3.5rem 1.5rem;
    }
    
    .story__quote {
        margin-bottom: 2rem;
    }
    
    .story__text {
        text-align: left;
    }
    
    .footer {
        padding: 2.5rem 1.5rem;
    }
}

@media (min-height: 800px) {
    .hero__logo {
        width: 160px;
        height: 160px;
    }
}

/* === Scroll Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Thanks Page === */
.thanks {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(
        180deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    );
}

.thanks__container {
    max-width: 500px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.thanks__logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
}

.thanks__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thanks__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.thanks__icon svg {
    width: 40px;
    height: 40px;
}

.thanks__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.thanks__message {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.thanks__form-container {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.thanks__form-intro {
    font-size: 0.9375rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.thanks__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thanks__input-group {
    width: 100%;
}

.thanks__input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.thanks__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(93, 146, 85, 0.15);
}

.thanks__input::placeholder {
    color: #aaa;
}

.thanks__btn {
    margin-top: 0.5rem;
}

.thanks__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.thanks__success {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease-out;
}

.thanks__success-text {
    font-size: 1rem;
    color: var(--color-primary-dark);
    font-weight: 500;
}

.thanks__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-base);
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.thanks__back:hover {
    color: var(--color-white);
}

@media (max-width: 480px) {
    .thanks {
        padding: 2rem 1.5rem;
    }
    
    .thanks__form-container {
        padding: 1.5rem;
    }
}
