:root {
    --primary: #FD9004;
    --primary-dark: #FF591C;
    --primary-light: rgba(253, 144, 4, 0.1);
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --text: #4a4a4a;
    --text-muted: #666;
    --white: #ffffff;
    --black: #000000;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --container-width: 1140px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .proa-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.align-start {
    align-items: start;
}

.highlight {
    color: var(--primary);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    color: var(--white); /* Ensure text is white at the top */
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    color: var(--text); /* Change to dark text when scrolled over light sections */
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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


.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.95rem; /* Tamaño fijo para consistencia */
}

.nav-links .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 50px; /* More rounded for a premium feel in the header */
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.lang-dropdown {
    position: absolute;
    top: 100%; /* Ajustado para eliminar el gap */
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.8rem; /* Un poco más de aire para el interactuable */
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 150px;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
}

.lang-switcher:hover .lang-dropdown {
    display: flex;
}

.lang-dropdown li {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
}

.lang-dropdown li:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 144, 4, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
}

/* Hero Slider Base */

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem; /* Even lower */
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width); /* Align with Logo */
    margin: 0 auto;
    padding-bottom: 3rem;
    text-align: left;
}

.hero-title {
    font-size: 2.6rem !important; /* Incrementado un 30% */
    line-height: 1.1;
    margin-bottom: 1rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}

.slide.active .hero-title {
    transform: translateY(0);
    opacity: 1;
}

.hero-subtitle {
    font-size: 1rem; /* Reduced further */
    margin-bottom: 2rem;
    max-width: 450px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.6s;
    line-height: 1.4;
}

.slide.active .hero-subtitle {
    transform: translateY(0);
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.8s;
}

.slide.active .hero-btns {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 5rem;
    right: 5rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-controls button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
    color: var(--white); /* Explicit white color */
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor; /* Inherits from header color */
    transition: var(--transition);
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--white);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* About Section */
.about {
    padding: 10rem 0;
}

.about .grid {
    grid-template-columns: 1.2fr 1fr;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.image-box {
    position: relative;
}

.placeholder-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Changed to square for a more modern, balanced look */
    background: #eee;
    border-radius: 40px; /* More rounded */
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.placeholder-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../assets/PEDIDO13%20(4).jpg') center/cover;
    transition: transform 0.5s ease;
}

.placeholder-img:hover::after {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.orange-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

/* Causes Section */
.causes {
    padding: 8rem 0;
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 0 1rem;
}

.cause-card {
    background: var(--white);
    padding: 2.5rem 1rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cause-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.cause-card > * {
    position: relative;
    z-index: 1;
}

.cause-card:hover, .cause-card.active {
    transform: translateY(-15px) scale(1.02);
    color: var(--white);
    box-shadow: 0 30px 60px rgba(253, 144, 4, 0.25);
}

.cause-card:hover::before, .cause-card.active::before {
    opacity: 1;
}

.cause-icon {
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
}

.cause-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Filter to turn black to brand orange (approximate) */
    filter: invert(72%) sepia(21%) saturate(2335%) hue-rotate(345deg) brightness(101%) contrast(91%);
    transition: var(--transition);
}

.cause-card:hover .cause-img, 
.cause-card.active .cause-img {
    filter: brightness(0) invert(1); /* Turn white on hover */
    transform: translateY(-5px);
}

.cause-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cause-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cause-card.active p {
    opacity: 1;
}

/* Partners Section */
.partners {
    padding: 4rem 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.partners-title {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-img {
    max-height: 70px; /* Increased from 45px */
    width: auto;
    max-width: 220px; /* Increased from 160px */
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(1);
    transition: var(--transition);
}

.partner-img:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Team CTA */
.team-cta {
    padding: 6rem 0;
}

.team-cta-box {
    background: var(--primary);
    border-radius: 40px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem); /* Scaled down */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem); /* Scaled down */
    margin-bottom: 3rem;
    max-width: 650px; /* Limit text width here, not in container */
    font-weight: 300;
    line-height: 1.5;
}

.team-cta-footer {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 1;
}

.team-btn {
    background: var(--white) !important;
    color: var(--primary) !important;
    border-radius: 12px;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-icon {
    font-size: 1.4rem;
}

.team-cta-image {
    width: 100%;
    display: flex;
    align-items: center;
}

.team-cta-image img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Limit height to prevent box from being too tall */
    object-fit: cover;
    object-position: top; /* Prioritize the top where faces usually are */
    border-radius: 24px;
}

@media (max-width: 992px) {
    .team-cta-box {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 2rem;
    }
}

/* Marquee Divider */
.marquee-divider {
    overflow: hidden;
    background: var(--bg-alt);
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    position: relative;
    z-index: 5;
    transform: rotate(-1deg); /* Slight rotation for a professional edge */
    width: 110%;
    margin-left: -5%;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span, .marquee-dot {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 1;
    padding: 0 1.5rem; /* Reduced padding for better flow with dots */
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Contact Section */
.contact {
    padding: 8rem 0 10rem; /* Adjusted since marquee takes space */
}

.contact .grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.contact h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 400px;
}

.contact-list {
    margin-top: 2rem;
}

.contact-list li {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-form {
    background: var(--white);
    padding: 4rem;
    border-radius: 40px; /* Modern rounded corners */
    box-shadow: 0 40px 100px rgba(0,0,0,0.06); /* Softer, premium shadow */
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-block {
    width: 100%;
}

/* Footer - Restored Original Design */
footer {
    padding: 5rem 0;
    background: var(--primary);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    flex-wrap: wrap;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-img-footer {
    height: 50px;
    filter: brightness(0) invert(1);
}

.divider-vertical {
    height: 30px;
    width: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
    max-width: 200px;
    text-align: left;
}

.footer-social-wrapper {
    text-align: center;
}

.footer-social-wrapper h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon-img-footer {
    height: 24px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.social-icon-img-footer:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .footer-content {
        gap: 4rem;
        flex-direction: column;
    }
}

/* Header Social styling */
.social-icon-img {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
    margin-left: 1rem;
}

header.scrolled .social-icon-img {
    filter: invert(72%) sepia(21%) saturate(2335%) hue-rotate(345deg) brightness(101%) contrast(91%);
}

.social-header {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,0.2);
    margin-left: 1rem;
    padding-left: 1.5rem;
}

header.scrolled .social-header {
    border-color: rgba(0,0,0,0.1);
}

.footer-social-wrapper h4 {
    margin-bottom: 0.5rem; /* Reduced from 1.5rem */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Reduced from 2.5rem */
}

.social-icon-img-footer {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .footer-logo-group {
        flex-direction: column;
        gap: 1rem;
    }

    .divider-vertical {
        display: none;
    }

    .footer-tagline {
        text-align: center;
        max-width: 100%;
    }
}
/* --- New Somos Proa Page Styles --- */
.about-hero {
    height: 70vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 100%;
}

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.proa-brand-section {
    position: relative;
    background: var(--white);
}

.brand-orange-header {
    background: var(--primary);
    padding: 8rem 0 14rem; /* More breathing room */
    color: var(--white);
}

.brand-orange-header .container {
    text-align: left; /* Alignment requested */
}

.brand-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem); 
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.3;
    max-width: 800px;
}

.brand-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 400;
}

.mission-vision-wrapper {
    margin-top: -10rem; /* Overlap effect */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.mission-card-premium {
    background: var(--white);
    padding: 3rem 2rem; /* Reduced from 5rem 3rem */
    border-radius: 30px; /* Smaller radius */
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition);
}

.mission-card-premium:hover {
    transform: translateY(-15px);
}

.premium-icon-box {
    width: 80px; /* Reduced from 120px */
    height: 80px;
    margin: 0 auto 1.5rem;
}

.premium-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Maintain brand color */
    filter: invert(34%) sepia(91%) saturate(1989%) hue-rotate(352deg) brightness(97%) contrast(92%);
}

.mission-card-premium h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.mission-card-premium p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Pillars V4 - Premium Redesign */
.pillars-section {
    background: #fafafa;
    padding: 8rem 0;
}

.pillars-main-title {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-align: left; /* Changed to Left */
}

.pillars-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 5rem;
    max-width: 650px;
    text-align: left; /* Changed to Left */
    font-weight: 400;
}

.pillars-grid-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pillar-card-premium {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(253, 144, 4, 0.1);
    border-color: rgba(253, 144, 4, 0.2);
}

.pillar-icon-box {
    width: 90px;
    height: 90px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Changed to transparent for JPG icons */
    border-radius: 50%;
    transition: var(--transition);
    overflow: hidden; /* Keep the JPG within the circle */
}

.pillar-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Better for icons with backgrounds */
    transition: var(--transition);
}

.pillar-card-premium:hover .pillar-icon-box img {
    transform: scale(1.1);
}

.pillar-card-premium p {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

/* Accent for cards */
.pillar-card-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.pillar-card-premium:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 992px) {
    .mission-vision-wrapper, .pillars-grid-v3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .brand-title {
        font-size: 3rem;
    }
    .about-hero {
        height: 50vh;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
        color: var(--text) !important;
    }

    .nav-links.active a {
        color: var(--text) !important;
    }

    .nav-links.active .lang-btn {
        color: var(--text);
        border-color: rgba(0,0,0,0.1);
    }

    .mobile-menu-btn {
        display: flex;
    }

    header.scrolled .mobile-menu-btn {
        color: var(--text);
    }

    header.scrolled .nav-links {
        background: var(--glass);
        backdrop-filter: blur(10px);
    }

    .social-header {
        border: none;
        margin: 0;
        padding: 1rem 0 0;
        justify-content: center;
    }
    
    header.scrolled .social-icon-img {
        filter: none;
        filter: invert(72%) sepia(21%) saturate(2335%) hue-rotate(345deg) brightness(101%) contrast(91%);
    }

    .about, .contact {
        padding: 5rem 0;
    }
    
    .about-image {
        order: -1;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .causes-grid {
        grid-template-columns: 1fr;
    }
}

/* Reveal Animations: solo ocultan si <html> tiene .motion (lo pone el <head> y lo quita si el JS no carga) */
.motion .reveal {
    opacity: 0;
    translate: 0 40px;
}

.motion .reveal.reveal-active {
    opacity: 1;
    translate: 0 0;
}

/* Specific delays for cards */
.causes-grid .cause-card:nth-child(2) { transition-delay: 0.1s; }
.causes-grid .cause-card:nth-child(3) { transition-delay: 0.2s; }
.causes-grid .cause-card:nth-child(4) { transition-delay: 0.3s; }
.causes-grid .cause-card:nth-child(5) { transition-delay: 0.4s; }

/* Staggered delays for benefits */
.benefit-item:nth-child(1) { transition-delay: 0.1s; }
.benefit-item:nth-child(2) { transition-delay: 0.2s; }
.benefit-item:nth-child(3) { transition-delay: 0.3s; }
.benefit-item:nth-child(4) { transition-delay: 0.4s; }

/* --- Recruitment Page Rebuilt Styles --- */
.hero-simple {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../assets/PEDIDO13.jpg') center/cover;
    color: var(--white);
    text-align: center;
}

.hero-overlay-soft {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.hero-title-main {
    position: relative;
    z-index: 2;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

/* --- Intro Premium Rebuilt --- */
.intro-premium {
    padding: 10rem 0;
}

.grid-intro {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: center;
}

.main-photo-frame {
    position: relative;
    border-radius: 30px;
    z-index: 1;
}

.team-photo {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.12);
    display: block;
    position: relative;
    z-index: 2;
}

.decorative-blob {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
}

.tag-accent {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.display-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text);
}

.text-body p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.emphasized {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.25rem !important;
}

.btn-styled {
    margin-top: 1rem;
    padding: 1rem 3rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(253, 144, 4, 0.3);
}

@media (max-width: 991px) {
    .grid-intro {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .intro-visual {
        order: -1;
    }
}

.benefits-full-orange {
    background: var(--primary);
    color: var(--white);
    padding: 8rem 0;
}

.grid-2-special {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.white-tag {
    display: block;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.benefits-h2-large {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1;
    font-weight: 800;
}

.b-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.b-arrow {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.b-item h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.b-item p {
    font-size: 1.05rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Form Section Rebuilt: Light Background version */
.recruitment-form-section {
    background: var(--bg-alt);
    padding: 8rem 0 10rem;
}

.form-header {
    margin-bottom: 4rem;
    color: var(--text);
}

.form-tag {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--primary);
}

.form-title-h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.premium-form-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 30px;
    width: 100%;
    max-width: 800px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.02),
        0 20px 48px rgba(0,0,0,0.05);
}

.recruitment-grid-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.radio-flex {
    display: flex;
    gap: 1.5rem;
    padding: 0.4rem 0;
}

.file-drop-zone {
    border: 1.5px dashed #ccc;
    background: #fdfdfd;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    font-size: 0.9rem;
}

.btn-orange-full {
    background: var(--primary);
    color: var(--white);
    width: auto;
    min-width: 200px;
    margin: 1rem auto 0;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-orange-full:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 991px) {
    .grid-2-special {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row, .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .premium-form-card {
        padding: 2.5rem;
    }
}

/* ===== Multi-país ===== */

.footer-world {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    font-size: 0.95rem;
}

.footer-world a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-world a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-world-main {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-world-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
}

/* Hub internacional */

.hub-hero {
    height: 80vh;
    min-height: 520px;
}

.hub-countries {
    padding: 8rem 0 2rem;
    background: var(--bg-alt);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.country-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: var(--transition);
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(253, 144, 4, 0.25);
}

.country-photo {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--primary-light);
}

.country-photo > img:not(.country-flag) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.country-card:hover .country-photo > img:not(.country-flag) {
    transform: scale(1.06);
}

.country-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 55%);
}

.country-flag {
    position: absolute;
    left: 1.25rem;
    bottom: 1rem;
    z-index: 1;
    width: 42px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.country-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.5rem 1.5rem 1.75rem;
}

.country-card h3 {
    font-size: 1.6rem;
}

.country-host {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.country-cta {
    margin-top: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.photo-credits {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.photo-credits summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    opacity: 0.8;
    transition: var(--transition);
}

.photo-credits summary::-webkit-details-marker {
    display: none;
}

.photo-credits summary::after {
    content: ' ▾';
}

.photo-credits[open] summary::after {
    content: ' ▴';
}

.photo-credits summary:hover {
    opacity: 1;
    color: var(--primary);
}

.photo-credits p {
    max-width: 800px;
    margin: 0.75rem auto 0;
    line-height: 1.6;
    opacity: 0.8;
}

.photo-credits a {
    color: inherit;
    text-decoration: none;
}

.photo-credits a:hover {
    text-decoration: underline;
}

/* Misma tonalidad de fondo: no duplicar el espacio entre países y causas */
.hub-countries + .causes {
    padding-top: 4rem;
}


@media (max-width: 992px) {
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .countries-grid {
        grid-template-columns: 1fr;
    }

    .hub-countries {
        padding: 5rem 0 1.5rem;
    }

    .hub-countries + .causes {
        padding-top: 3rem;
    }
}

/* Aliadas: con muchos logos, cinta en movimiento */
.partners-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.partners-track {
    display: flex;
    width: max-content;
    animation: partners-scroll 40s linear infinite;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

.partners-set {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
}

.partners-set .partner-img {
    max-width: 180px;
}

@keyframes partners-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
        width: auto;
    }

    .partners-set {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem 3rem;
        padding: 0 1rem;
    }

    .partners-set[aria-hidden="true"] {
        display: none;
    }
}

/* Aliadas: en mobile, dos logos por fila */
@media (max-width: 600px) {
    .partners-grid {
        gap: 2rem 1.5rem;
    }

    .partners-grid a {
        flex: 0 0 calc(50% - 0.75rem);
        display: flex;
        justify-content: center;
    }

    .partner-img {
        max-height: 48px;
        max-width: 100%;
    }

    .partners-set {
        gap: 2.5rem;
        padding-right: 2.5rem;
    }

    .partners-set .partner-img {
        max-width: 130px;
    }

    .partners-track {
        animation-duration: 30s;
    }
}

/* =====================================================================
   PROPUESTA B — "ENERGÍA Y MOVIMIENTO"
   Naranja de marca (#FD9004) + degradé del brochure (#FF7913 → #FF591C)
   + blanco. Isotipo vivo con pocas apariciones, títulos que se revelan
   por palabra, tarjetas con tilt y marquesinas ligadas al scroll.
   ===================================================================== */
:root {
    --ink: #1d1a17;            /* solo texto de lectura sobre blanco */
    --ink-soft: #4a423b;
    --orange-mid: #FF7913;     /* degradé de marca */
    --orange-hot: #FF591C;     /* degradé de marca */
    --grad: linear-gradient(135deg, #FD9004 0%, #FF7913 50%, #FF591C 100%);
    --grad-h: linear-gradient(90deg, #FD9004 0%, #FF7913 50%, #FF591C 100%);
    --grad-btn: linear-gradient(135deg, #FF7913 0%, #FF591C 100%);
    --cream: #FFF6EC;
    --line: rgba(253, 144, 4, 0.2);
    --icon-orange: invert(58%) sepia(96%) saturate(1900%) hue-rotate(2deg) brightness(101%) contrast(101%);
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --wave-h: 64px;            /* separador en onda: misma altura en todas las páginas y viewports */
    --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 74C220 18 470 0 740 42s470 78 700 18V120H0z'/%3E%3C/svg%3E");
}

/* El scroll suave lo hace motion.js en los clicks a anclas; el scroll programático queda instantáneo */
html { scroll-behavior: auto; }
body { color: var(--ink-soft); overflow-x: clip; }
::selection { background: var(--orange-mid); color: #fff; }
main > section,
.marquee-zone,
.proa-brand-section { overflow-x: clip; }

/* Íconos naranjas (PNG negros filtrados) al tono de marca */
.cause-img,
.premium-icon-box img,
.social-icon-img { filter: var(--icon-orange); }

/* ---------- Foco visible ---------- */
:focus-visible {
    outline: 3px solid var(--orange-hot);
    outline-offset: 3px;
    border-radius: 6px;
}
footer :focus-visible,
.team-cta-box :focus-visible,
.benefits-full-orange :focus-visible { outline-color: #fff; }

/* ---------- Header ---------- */
header { padding: 1.1rem 0; color: var(--ink); background: rgba(255, 255, 255, 0); }
header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    color: var(--ink);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--line);
}
header .mobile-menu-btn { color: var(--ink); }
.scroll-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-h);
    transform-origin: 0 50%;
    transform: scaleX(0);
    pointer-events: none;
}
.logo { flex-shrink: 0; margin-right: 1.5rem; }
.nav-links { gap: clamp(1.1rem, 2.1vw, 2.5rem); }
.nav-links a,
.nav-links .btn { white-space: nowrap; }
.nav-links a:not(.btn) { position: relative; font-weight: 600; }
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-out);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: inherit; }
.lang-btn { color: inherit; border-color: var(--line); background: #fff; }
.social-header { border-color: var(--line); }

/* Nav: nunca se parte en dos líneas; pasa a hamburguesa antes de quedar apretado */
@media (max-width: 1023px) {
    header { background: #fff; padding: 0.85rem 0; box-shadow: 0 1px 0 var(--line); }
    .logo-img { height: 42px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 20px 40px -20px rgba(255, 89, 28, 0.35);
    }
    .nav-links.active { display: flex; color: var(--ink) !important; }
    .nav-links.active a { color: var(--ink) !important; }
    .nav-links.active .btn { color: #fff !important; }
    .nav-links.active .lang-btn { color: var(--ink); border-color: var(--line); }
    .nav-links.active a:not(.btn)::after { display: none; }
    .lang-switcher { margin-left: 0; }
    .mobile-menu-btn { display: flex; }
    header.scrolled .nav-links { background: rgba(255, 255, 255, 0.97); }
    .social-header { border: none; margin: 0; padding: 1rem 0 0; justify-content: center; }
}

/* ---------- Botones: degradé de marca + texto blanco bold ---------- */
.btn,
.btn-orange-full {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
    translate: var(--mgx, 0) var(--mgy, 0);
    transition: transform 0.35s var(--ease-spring), translate 0.3s var(--ease-out),
        box-shadow 0.35s ease, color 0.3s ease;
}
.btn-primary,
.btn-orange-full {
    background: var(--grad-btn);
    color: #fff;
}
.btn-primary::before,
.btn-white::before,
.btn-orange-full::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--orange-hot);
    transform: translateY(102%);
    transition: transform 0.5s var(--ease-out);
}
.btn-white::before { background: var(--cream); }
.btn-primary:hover,
.btn-orange-full:hover {
    background: var(--grad-btn);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -10px rgba(255, 89, 28, 0.6);
}
.btn-primary:hover::before,
.btn-white:hover::before,
.btn-orange-full:hover::before { transform: translateY(0); }
.btn-white { background: #fff; color: var(--orange-hot); }
.btn-white:hover { color: var(--orange-hot); transform: translateY(-3px); }
.btn:active, .btn-orange-full:active { transform: translateY(0) scale(0.97); }

/* ---------- Isotipo vivo (hero de cada página + un acento en Somos Proa) ---------- */
.bloom {
    position: absolute;
    pointer-events: none;
    aspect-ratio: 1;
    --petal: var(--primary);
}
.bloom svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(var(--rot, 0deg));
}
.bloom .petal {
    fill: var(--petal);
    transform-box: fill-box;
    transform-origin: 0% 50%;
}
.motion .bloom.is-live .petal {
    animation: petal-breathe 5s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.55s);
}
@keyframes petal-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.motion .bloom.whirl svg { animation: whirl 1.3s var(--ease-spring); }
@keyframes whirl {
    from { transform: rotate(var(--rot, 0deg)) scale(1); }
    40% { transform: rotate(calc(var(--rot, 0deg) + 200deg)) scale(1.12); }
    to { transform: rotate(calc(var(--rot, 0deg) + 360deg)) scale(1); }
}

/* ---------- Títulos partidos por palabra ---------- */
.split .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0.08em 0.04em 0.16em;
    margin: -0.08em -0.04em -0.16em;
}
.split .wi { display: inline-block; }
.motion .split .wi {
    opacity: 0;
    transform: translateY(115%) rotate(5deg);
}
.motion .split.is-in .wi,
.motion .slide.active .hero-title.split .wi {
    animation: word-up 0.95s var(--ease-out) both;
    animation-delay: calc(var(--i) * 65ms + var(--split-delay, 0ms));
}
@keyframes word-up {
    from { opacity: 0; transform: translateY(115%) rotate(5deg); }
    to { opacity: 1; transform: none; }
}

/* Palabra destacada sobre fondo claro: naranja de marca + marcador que se pinta */
.highlight {
    color: var(--orange-mid);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background: linear-gradient(transparent 64%, rgba(253, 144, 4, 0.24) 64%, rgba(253, 144, 4, 0.24) 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
}
.motion .highlight { background-size: 0% 100%; transition: background-size 1s var(--ease-out) 0.55s; }
.motion .is-in .highlight,
.motion .reveal-active .highlight { background-size: 100% 100%; }

/* ---------- Estado final garantizado (motion.js agrega .motion-done al terminar) ---------- */
.motion .split.motion-done .wi,
.motion .slide.active .hero-title.split.motion-done .wi {
    animation: none;
    opacity: 1;
    transform: none;
}
.motion .motion-done .highlight,
.motion .reveal.motion-done .highlight { background-size: 100% 100%; transition: none; }
.motion .reveal.motion-done {
    opacity: 1;
    translate: 0 0;
    clip-path: none;
    transition-property: transform, box-shadow, background-color, color, border-color, border-radius;
    transition-duration: 0.3s, 0.45s, 0.35s, 0.35s, 0.35s, 1.2s;
    transition-delay: 0s;
}

/* =====================================================================
   HERO — las slides se apilan en una grilla (la altura sale del contenido,
   no de 100vh): la foto se ve completa en su proporción real, el texto
   nunca queda encima y la onda del pie siempre tiene el mismo aire.
   ===================================================================== */
.hero {
    --ratio: 1.7778;
    --pad: clamp(1.75rem, 5vh, 3.5rem);
    --header-space: 96px;
    --swoosh: var(--bg);
    height: auto !important;
    min-height: 0;
    display: block;
    padding: 0;
    background: #fff;
    color: var(--ink);
    overflow: hidden;
}
#about-home, #trabaja-hero { --ratio: 1.5; }
.hub-hero { --swoosh: var(--bg-alt); }
#about-home { --swoosh: var(--grad-h); }
.hero:has(+ .recruitment-form-section) { --swoosh: var(--cream); }

.hero-slides {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: grid;
    z-index: 1;
}
.hero .slide {
    grid-area: 1 / 1;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    padding: calc(var(--header-space) + var(--pad)) 0 calc(var(--wave-h) + var(--pad) + 18px);
    background-size: 0 0 !important;   /* la imagen la pinta el marco (::before) */
    background-repeat: no-repeat !important;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 0s 1.2s;
}
.hero .slide.active { visibility: visible; transition: opacity 1.2s ease-in-out, visibility 0s 0s; }
.hero-overlay { display: none; }
/* Marco de la foto: misma imagen que la slide, completa y sin recorte */
.hero .slide::before {
    content: '';
    display: block;
    aspect-ratio: var(--ratio);
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 28px;
    box-shadow: 16px 16px 0 var(--primary);
}
.hero-content {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Desktop / notebook: texto a la izquierda, foto a la derecha */
@media (min-width: 1024px) {
    .hero {
        --gutter: max(2rem, calc((100vw - var(--container-width)) / 2 + 2rem));
        --gap: clamp(2rem, 4vw, 3.5rem);
        /* la foto nunca es más alta que lo que deja la pantalla menos header, aire y onda */
        --photo-w: min(50vw, calc((100vh - var(--header-space) - 2 * var(--pad) - var(--wave-h) - 40px) * var(--ratio)), 640px);
    }
    .hero .slide {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--photo-w);
        column-gap: var(--gap);
        align-items: center;
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }
    .hero .slide::before { grid-column: 2; grid-row: 1; width: 100%; }
    .hero-content { grid-column: 1; grid-row: 1; max-width: 560px; }
    .hero .hero-title { font-size: clamp(2.1rem, min(3.7vw, 6.6vh), 4.1rem) !important; }
    .hero .hero-title[data-i18n="landing_title"] { font-size: clamp(1.6rem, min(2.4vw, 4.4vh), 2.6rem) !important; }
    .hero-bloom {
        width: clamp(170px, 17vw, 290px);
        right: calc(var(--gutter) - clamp(50px, 5vw, 90px));
        top: calc(var(--header-space) + var(--pad) - clamp(40px, 4vw, 70px));
        z-index: 0;
    }
    .slider-controls {
        right: calc(var(--gutter) + 1rem);
        bottom: calc(var(--wave-h) + var(--pad) + 18px + 1rem);
        top: auto;
    }
}

/* Tablet y mobile: foto completa arriba y el texto abajo, sobre el degradé */
@media (max-width: 1023px) {
    .hero {
        --header-space: 72px;
        --pad: 0px;
        background: var(--grad);
        color: #fff;
    }
    .hero .slide { padding-left: 0; padding-right: 0; padding-bottom: calc(var(--wave-h) + 1.5rem); }
    .hero .slide::before { border-radius: 0; box-shadow: none; }
    .hero-content { padding: 1.75rem 2rem 0; }
    .hero .hero-title { font-size: clamp(2rem, 7vw, 3rem) !important; color: #fff; }
    .hero .hero-title[data-i18n="landing_title"] { font-size: clamp(1.6rem, 5.6vw, 2.3rem) !important; }
    .hero .hero-subtitle { color: #fff; font-weight: 500; }
    .hero .highlight { color: #fff; }
    .hero .btn-primary { background: #fff; color: var(--orange-hot); }
    .hero .btn-primary::before { background: var(--cream); }
    .hero .btn-primary:hover { color: var(--orange-hot); }
    .hero-bloom {
        width: min(30vw, 200px);
        right: 4vw;
        top: calc(var(--header-space) + 100vw / var(--ratio) - min(15vw, 100px));
        z-index: 3;
    }
    .slider-controls { left: 1.25rem; right: auto; bottom: auto; top: calc(var(--header-space) + 100vw / var(--ratio) - 56px); }
    .slide-dots { display: none; }
}
@media (max-width: 700px) {
    .hero-content { padding: 1.5rem 1.25rem 0; }
}

.hero .hero-title {
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    max-width: none;
    margin-bottom: clamp(0.8rem, 2vh, 1.3rem);
    color: var(--ink);
    text-wrap: balance;
    opacity: 1;
    transform: none;
}
.motion .hero-title.split { --split-delay: 250ms; }
.hero .hero-subtitle {
    font-size: clamp(1rem, min(1.4vw, 2.3vh), 1.2rem);
    font-weight: 400;
    max-width: 34rem;
    margin-bottom: clamp(1.1rem, 3vh, 1.9rem);
    color: var(--ink-soft);
    opacity: 1;
    transform: none;
}
.hero .hero-btns { opacity: 1; transform: none; }
.hero .btn-large { padding: 0.95rem 2.3rem; font-size: 1.02rem; }
.hero .highlight {
    color: var(--orange-mid);
    background: linear-gradient(var(--primary), var(--primary)) no-repeat 0 96% / 100% 0.08em;
}
.motion .hero .highlight { background-size: 0% 0.08em; transition: none; }
.motion .slide.active .highlight { animation: underline-in 0.9s var(--ease-out) 1.15s forwards; }
.motion .slide.active .hero-title.motion-done .highlight { animation: none; background-size: 100% 0.08em; }
@keyframes underline-in { to { background-size: 100% 0.08em; } }
@media (max-width: 1023px) {
    .hero .highlight { background-image: linear-gradient(#fff, #fff); }
}
.motion .hero-content { translate: 0 calc(var(--hp, 0) * -60px); opacity: calc(1 - var(--hp, 0) * 0.85); }

.hero-bloom { position: absolute; pointer-events: auto; cursor: pointer; }

/* Separador en onda: único componente, misma altura en todas las páginas y viewports */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    height: var(--wave-h);
    pointer-events: none;
    z-index: 4;
    -webkit-mask: var(--wave) center bottom / 100% 100% no-repeat;
    mask: var(--wave) center bottom / 100% 100% no-repeat;
}
.hero::before { bottom: 10px; background: var(--primary); }
.hero::after { bottom: -1px; background: var(--swoosh); }

.slider-controls { position: absolute; display: flex; align-items: center; gap: 0.6rem; z-index: 6; }
.slider-controls button {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    color: var(--orange-hot);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    translate: var(--mgx, 0) var(--mgy, 0);
    transition: background-color 0.3s, color 0.3s, transform 0.35s var(--ease-spring), translate 0.3s var(--ease-out);
}
.slider-controls button:hover { background: var(--orange-hot); color: #fff; }
.slide-dots { display: flex; gap: 6px; margin-right: 0.5rem; }
.slide-dots span {
    position: relative;
    width: 34px;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.slide-dots span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--orange-hot);
    transform: scaleX(0);
    transform-origin: left;
}
.slide-dots span.on::after { animation: dot-fill 6s linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.scroll-indicator { display: none; }

/* ---------- Encabezados de sección ---------- */
.section-tag,
.tag-accent,
.form-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(253, 144, 4, 0.14);
    color: var(--orange-hot);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.section-tag::before,
.tag-accent::before,
.form-tag::before {
    content: '';
    width: 0.6rem;
    height: 0.85rem;
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: var(--primary);
    transform: rotate(-24deg);
}
.section-header h2,
.about h2,
.contact h2,
.pillars-main-title,
.display-title,
.form-title-h2 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    text-wrap: balance;
}
.section-header h2 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 1.25rem; }
.causes .section-header { display: flex; flex-direction: column; align-items: center; }
.causes .section-header .section-tag { order: 0; }
.causes .section-header h2 { order: 1; }
.causes .section-header .section-description { order: 2; margin: 0 auto; }
.section-description { color: var(--ink-soft); }

/* ---------- About ---------- */
.about { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.about h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.about p { color: var(--ink-soft); font-size: 1.15rem; }
.stats-grid { gap: 1.25rem; }
.stat-item { padding-top: 1rem; border-top: 3px solid var(--primary); }
.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.6rem, 5vw, 3.9rem);
    color: var(--orange-mid);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--ink-soft); font-weight: 600; margin-top: 0.35rem; }
.image-box { isolation: isolate; }
/* Foto completa: mismo formato que la imagen (16:9), sin recortar personas */
.placeholder-img {
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    box-shadow: -16px 16px 0 var(--primary);
}
.placeholder-img::after { background-position: center; background-size: cover; }
.placeholder-img:hover::after { transform: none; }
.motion .reveal-clip { clip-path: inset(100% 0 0 0 round 28px); translate: 0 0; }
.motion .reveal-clip.reveal-active { clip-path: inset(-30px -30px -30px -30px); }
.orange-glow { display: none; }
@media (min-width: 993px) {
    .about .grid { grid-template-columns: 1.1fr 1fr; }
    .about-image { order: -1; }
}

/* ---------- Reveal: propiedades separadas para no pisar los hovers ---------- */
.motion .reveal {
    transition-property: opacity, translate, transform, box-shadow, background-color, color, border-color, clip-path, border-radius;
    transition-duration: 0.9s, 0.9s, 0.3s, 0.45s, 0.35s, 0.35s, 0.35s, 1.2s, 1.2s;
    transition-delay: calc(var(--d, 0) * 85ms), calc(var(--d, 0) * 85ms), 0s, 0s, 0s, 0s, 0s, calc(var(--d, 0) * 85ms), 0s;
    transition-timing-function: var(--ease-out);
}

/* ---------- Causas: tilt 3D + color que nace del puntero ---------- */
.causes {
    position: relative;
    overflow: hidden;
    background: var(--cream);
    padding: clamp(5rem, 10vw, 8rem) 0;
}
.causes-grid { gap: 1.1rem; padding: 0; }
.cause-card {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 28px;
    padding: 2.4rem 1.2rem 2.2rem;
    color: var(--ink);
    transition: transform 0.3s var(--ease-out), box-shadow 0.45s, color 0.35s;
}
.cause-card::before {
    background: var(--grad);
    opacity: 1;
    clip-path: circle(0% at var(--px, 50%) var(--py, 100%));
    transition: clip-path 0.7s var(--ease-out);
}
.cause-card:hover::before,
.cause-card.active::before { clip-path: circle(150% at var(--px, 50%) var(--py, 100%)); }
.cause-card:hover,
.cause-card.active {
    color: #fff;
    transform: translateY(-10px);
    box-shadow: 0 30px 50px -24px rgba(255, 89, 28, 0.55);
}
.cause-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.cause-card p { opacity: 1; color: var(--ink-soft); transition: color 0.35s; }
.cause-card:hover p, .cause-card.active p { color: #fff; font-weight: 600; }
.cause-card:hover .cause-img,
.cause-card.active .cause-img { filter: brightness(0) invert(1); transform: none; }
.cause-card:hover .cause-icon,
.cause-card.active .cause-icon { animation: icon-pop 0.7s var(--ease-spring); }
@keyframes icon-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.fx-hover .tilt { transform-style: preserve-3d; }
.fx-hover .tilt:hover {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-10px);
}

/* ---------- Aliadas: logos planos, sin ninguna transformación (solo gris → color) ---------- */
.partners { padding: clamp(3.5rem, 7vw, 5rem) 0; border-bottom: 0; }
.partners-title { color: var(--ink-soft); letter-spacing: 0.25em; }
.partners a,
.partner-img,
.partner-img:hover {
    transform: none !important;
    translate: none !important;
    rotate: none !important;
    scale: none !important;
}
.partner-img { transition: opacity 0.3s, filter 0.3s; }

/* ---------- Súmate (CTA con el degradé de marca) ---------- */
.team-cta { padding: clamp(3rem, 7vw, 6rem) 0; }
.team-cta-box {
    position: relative;
    isolation: isolate;
    background: var(--grad);
    color: #fff;
    border-radius: clamp(28px, 4vw, 48px);
}
.team-cta-content { position: relative; z-index: 1; }
.team-cta h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 1rem; color: #fff; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.team-cta-subtitle { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.team-cta-footer { font-size: 1.2rem; font-weight: 600; margin-bottom: 2.25rem; }
.team-cta-image { position: relative; z-index: 1; }
/* Foto completa (3:2), sin recorte */
.team-cta-image img {
    max-height: none;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    rotate: 2deg;
    box-shadow: 14px 14px 0 rgba(255, 255, 255, 0.95);
    transition: rotate 0.6s var(--ease-spring), box-shadow 0.6s var(--ease-out), scale 0.6s var(--ease-out);
}
.team-cta-box:hover .team-cta-image img { rotate: -1deg; scale: 1.02; box-shadow: 20px 20px 0 #fff; }
.team-btn { background: #fff !important; color: var(--orange-hot) !important; border-radius: 999px; }
.team-btn:hover { color: var(--orange-hot) !important; }
.team-btn:hover .btn-icon { animation: wave-hi 0.9s ease-in-out; }
@keyframes wave-hi {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.3); }
    70% { transform: scale(0.95); }
}

/* ---------- Marquesinas cruzadas: degradé + blanco ---------- */
.marquee-zone {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.marquee-divider {
    width: 120%;
    margin-left: -10%;
    padding: 1.1rem 0;
    border: 0;
    background: var(--grad-h);
    transform: rotate(-3.2deg);
    z-index: 2;
}
.marquee-divider.alt {
    position: absolute;
    left: 0;
    top: 50%;
    margin-left: -10%;
    background: #fff;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-50%) rotate(3.2deg);
    z-index: 1;
}
.marquee-content { will-change: transform; }
.marquee-divider.alt .marquee-content { animation-direction: reverse; }
.js-marquee .marquee-zone .marquee-content { animation: none; }
.marquee-content span,
.marquee-dot {
    color: #fff;
    font-size: clamp(1.15rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0 1.1rem;
}
.marquee-content .marquee-dot { color: rgba(255, 255, 255, 0.75); }
.marquee-divider.alt .marquee-content span { color: var(--orange-hot); }
.marquee-divider.alt .marquee-content .marquee-dot { color: var(--primary); }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(5rem, 9vw, 8rem) 0 clamp(6rem, 11vw, 10rem); }
.contact h2 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.contact-info p { color: var(--ink-soft); }
.contact-list li { color: var(--ink); font-weight: 500; }
.contact-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 50%;
    background: var(--grad-btn);
    color: #fff;
    transition: transform 0.5s var(--ease-spring);
}
.contact-list li:hover .contact-icon { transform: scale(1.15); }
.form-stage { position: relative; }
.form-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: var(--grad);
    transform: rotate(-3deg) translate(10px, 14px);
    transition: transform 0.7s var(--ease-spring);
}
.form-stage:hover::before,
.form-stage:focus-within::before { transform: rotate(-1.2deg) translate(16px, 18px); }
.contact-form,
.premium-form-card {
    position: relative;
    border: 1.5px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(255, 89, 28, 0.3);
}
.form-heading { font-family: 'Outfit', sans-serif; font-size: 1.6rem; color: var(--ink); margin-bottom: 1.5rem; }
.form-group input,
.form-group textarea,
.input-group input,
.input-group select,
.input-group textarea {
    border: 1.5px solid #f0e2d2;
    border-radius: 14px;
    background: #fffdfb;
    color: var(--ink);
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, translate 0.3s var(--ease-out);
}
.form-group input:hover,
.form-group textarea:hover,
.input-group input:hover,
.input-group select:hover,
.input-group textarea:hover { border-color: #f3c99a; }
.form-group input:focus,
.form-group textarea:focus,
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(253, 144, 4, 0.25);
    translate: 0 -2px;
}
::placeholder { color: #8a7f75; }

/* ---------- Footer: degradé de marca + blanco ---------- */
footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--grad);
    color: #fff;
    padding: clamp(4.5rem, 8vw, 6.5rem) 0 3rem;
    border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0;
    margin-top: calc(-1 * clamp(28px, 5vw, 64px));
}
.footer-content { position: relative; z-index: 1; }
.footer-world { position: relative; z-index: 1; border-top-color: rgba(255, 255, 255, 0.4); font-weight: 600; }
.logo-img-footer { filter: brightness(0) invert(1); height: 56px; }
.footer-tagline { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; }
.footer-social-wrapper h4 { font-weight: 800; opacity: 1; }
.divider-vertical { background: rgba(255, 255, 255, 0.5); }
.footer-world a { position: relative; opacity: 1; }
.footer-world a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-world .footer-world-main { color: #fff; font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800; }
.social-icon-img-footer { filter: brightness(0) invert(1); }
.social-icons a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.7); transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease-spring); }
.social-icons a:hover { background: #fff; border-color: #fff; transform: translateY(-4px) scale(1.12); opacity: 1; }
.social-icons a:hover img { filter: var(--icon-orange); }
.social-icon-img-footer:hover { transform: none; }

/* ---------- Hub: países ---------- */
.hub-countries { position: relative; padding: clamp(5rem, 9vw, 8rem) 0 2rem; }
.countries-grid { gap: 1.5rem; }
.country-card {
    position: relative;
    isolation: isolate;
    border-radius: 28px;
    border: 1.5px solid var(--line);
    box-shadow: 0 20px 40px -28px rgba(255, 89, 28, 0.35);
    transition: transform 0.3s var(--ease-out), box-shadow 0.45s;
}
.country-card:hover { transform: translateY(-10px); box-shadow: 0 34px 60px -28px rgba(255, 89, 28, 0.6); }
/* Formato de las fotos de ciudad (3:2): se ven casi completas */
.country-photo { aspect-ratio: 3 / 2; }
.country-photo > img:not(.country-flag) { object-position: center; transition: transform 1s var(--ease-out); }
.country-card:hover .country-photo > img:not(.country-flag) { transform: scale(1.06); }
.country-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 214, 0.45) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.9s var(--ease-out);
    pointer-events: none;
}
.country-card:hover .country-photo::before { transform: translateX(110%); }
.country-photo::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 35%); }
.country-flag { z-index: 2; transition: transform 0.6s var(--ease-spring); transform-origin: left bottom; }
.country-card:hover .country-flag { transform: translateY(-6px) scale(1.15); }
.country-body { position: relative; z-index: 0; overflow: hidden; }
.country-body::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grad);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.55s var(--ease-out);
}
.country-card:hover .country-body::before { transform: scaleY(1); }
.country-card h3 { color: var(--ink); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; transition: color 0.3s; }
.country-host { color: var(--ink-soft); transition: color 0.3s; }
.country-cta { color: var(--orange-hot); font-weight: 800; display: inline-flex; gap: 0.35rem; align-items: center; transition: color 0.3s; }
.cta-arrow { display: inline-block; transition: transform 0.45s var(--ease-spring); }
.country-card:hover h3,
.country-card:hover .country-host,
.country-card:hover .country-cta { color: #fff; }
.country-card:hover .country-host { font-weight: 600; }
.country-card:hover .cta-arrow { transform: translateX(8px); }
.country-card:focus-visible { outline: 3px solid var(--orange-hot); outline-offset: 4px; }
.photo-credits { color: var(--ink-soft); }

/* ---------- Somos Proa ---------- */
.brand-orange-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--grad-h);
    color: #fff;
    padding: clamp(4rem, 9vw, 8rem) 0 clamp(11rem, 16vw, 15rem);
}
.brand-orange-header .container { position: relative; z-index: 1; }
.brand-title {
    font-size: clamp(2rem, 4.6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    max-width: 20ch;
    text-wrap: balance;
}
.brand-bloom { --petal: rgba(255, 255, 255, 0.35); width: clamp(300px, 40vw, 560px); right: -8%; top: -26%; z-index: 0; }
.mission-card-premium {
    border: 1.5px solid var(--line);
    border-radius: 32px;
    padding: clamp(2rem, 4vw, 3.25rem);
    text-align: left;
    box-shadow: 0 30px 60px -32px rgba(255, 89, 28, 0.4);
    transition: transform 0.3s var(--ease-out), box-shadow 0.45s;
}
.mission-card-premium:hover { transform: translateY(-10px); }
.premium-icon-box {
    width: 84px;
    height: 84px;
    margin: 0 0 1.5rem;
    padding: 16px;
    border-radius: 50%;
    background: rgba(253, 144, 4, 0.14);
    transition: transform 0.7s var(--ease-spring), background-color 0.3s;
}
.mission-card-premium:hover .premium-icon-box { transform: scale(1.12); background: var(--orange-mid); }
.mission-card-premium:hover .premium-icon-box img { filter: brightness(0) invert(1); }
.mission-card-premium h3 { color: var(--ink); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin-bottom: 1rem; }
.mission-card-premium p { color: var(--ink-soft); }

/* Pilares: una sola grilla alineada; número y chip en la misma posición en cada tarjeta */
.pillars-section { position: relative; overflow: hidden; background: var(--cream); padding: clamp(5rem, 10vw, 8rem) 0; }
.pillars-main-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.pillars-subtitle { color: var(--ink-soft); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.pillars-grid-v4 {
    counter-reset: pillar;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
    align-items: stretch;
}
.pillar-card-premium {
    margin: 0 !important;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 1.6rem 1.3rem 1.8rem;
    border-radius: 26px;
    border: 1.5px solid var(--line);
    box-shadow: none;
    transition: transform 0.3s var(--ease-out), box-shadow 0.45s, background-color 0.4s;
}
.pillar-card-premium::before {
    counter-increment: pillar;
    content: counter(pillar, decimal-leading-zero);
    position: absolute;
    top: 1.6rem;
    right: 1.3rem;
    font: 800 1.05rem/1 'Outfit', sans-serif;
    color: var(--orange-hot);
    transition: color 0.3s;
}
.pillar-card-premium:hover { background: var(--grad); transform: translateY(-8px); box-shadow: 0 28px 50px -26px rgba(255, 89, 28, 0.7); border-color: transparent; }
.pillar-card-premium:hover::before { color: #fff; }
.pillar-card-premium::after { background: #fff; }
.pillar-icon-box { flex: 0 0 auto; width: 64px; height: 64px; margin: 0 0 1.25rem; background: #fff; box-shadow: 0 0 0 4px #fff; }
.pillar-card-premium:hover .pillar-icon-box img { transform: scale(1.1); }
.pillar-card-premium p { font-size: 1rem; color: var(--ink); transition: color 0.3s; }
.pillar-card-premium:hover p { color: #fff; font-weight: 700; }

/* ---------- Trabaja con nosotros / Súmate ---------- */
.intro-premium { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.main-photo-frame { isolation: isolate; }
/* Foto vertical completa, con tope de alto para que no sea más alta que la pantalla */
.team-photo {
    width: auto;
    max-width: 100%;
    max-height: min(82vh, 760px);
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: -16px 16px 0 var(--primary);
    transition: box-shadow 0.6s var(--ease-out), rotate 0.6s var(--ease-spring);
}
.main-photo-frame:hover .team-photo { box-shadow: -24px 24px 0 var(--primary); rotate: -1deg; }
.decorative-blob { display: none; }
.display-title { font-size: clamp(2.5rem, 5vw, 4.1rem); }
.text-body p { color: var(--ink-soft); }
.text-body p.emphasized { color: var(--orange-hot) !important; }
.btn-styled { box-shadow: 0 14px 30px -12px rgba(255, 89, 28, 0.6); }

.benefits-full-orange {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--grad);
    color: #fff;
    padding: clamp(5rem, 10vw, 8rem) 0;
}
.white-tag { color: #fff; letter-spacing: 0.14em; font-weight: 800; opacity: 1; }
.benefits-h2-large { font-size: clamp(2.1rem, 3.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.b-item {
    align-items: flex-start;
    padding: 1.6rem 1.6rem 1.6rem 1.4rem;
    margin-bottom: 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    transition: background-color 0.35s, transform 0.5s var(--ease-spring);
}
.b-item:hover { background: rgba(255, 255, 255, 0.22); transform: translateX(8px); }
.b-arrow {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--orange-hot);
    font-size: 1.5rem;
    transition: transform 0.5s var(--ease-spring);
}
.b-item:hover .b-arrow { transform: rotate(-45deg) scale(1.08); }
.b-item h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 800; line-height: 1.2; }
.b-item p { opacity: 1; font-weight: 600; }

.flex-center { display: flex; flex-direction: column; align-items: center; }
.recruitment-form-section { background: var(--cream); padding: clamp(5rem, 9vw, 8rem) 0 clamp(6rem, 11vw, 10rem); }
.form-header { margin-bottom: 3rem; text-align: center; }
.form-title-h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-top: 0.5rem; }
.form-stage { width: 100%; max-width: 800px; }
.premium-form-card { border-radius: 32px; }
.input-group label { color: var(--ink-soft); }
.radio-flex input { accent-color: var(--orange-mid); }
.radio-flex label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
}
.radio-flex input { width: 1.15rem; height: 1.15rem; margin: 0; }
.file-drop-zone { border: 1.5px dashed #f3c99a; border-radius: 14px; transition: border-color 0.3s, background-color 0.3s; }
.file-drop-zone:hover { border-color: var(--primary); background: rgba(253, 144, 4, 0.08); }
.btn-orange-full { box-shadow: 0 14px 30px -12px rgba(255, 89, 28, 0.6); }

/* ---------- Confetti de pétalos ---------- */
.petal-confetti {
    position: fixed;
    width: 12px;
    height: 17px;
    margin: -8px 0 0 -6px;
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: var(--primary);
    pointer-events: none;
    z-index: 3001;
    animation: confetti 1.2s var(--ease-out) forwards;
}
.petal-confetti.ink { background: var(--orange-hot); }
@keyframes confetti {
    0% { transform: translate(0, 0) rotate(0) scale(0.4); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .pillars-grid-v4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .causes-grid { grid-template-columns: repeat(2, 1fr); }
    .causes-grid .cause-card:last-child { grid-column: 1 / -1; }
    .brand-title { font-size: clamp(2rem, 6vw, 3rem); }
}
@media (max-width: 700px) {
    .container, .nav-container { padding: 0 1.25rem; }
    .stats-grid { gap: 0.75rem; }
    .stat-label { font-size: 0.8rem; line-height: 1.3; }
    .cause-card { padding: 1.8rem 0.9rem; border-radius: 22px; }
    .cause-icon { height: 52px; margin-bottom: 1rem; }
    .cause-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .cause-card p { font-size: 0.85rem; }
    .placeholder-img { box-shadow: -10px 10px 0 var(--primary); }
    .team-cta-box { padding: 2.25rem 1.5rem; }
    .team-cta-image img { box-shadow: 10px 10px 0 #fff; rotate: 1.5deg; }
    .team-btn { padding: 1rem 1.6rem; font-size: 0.9rem; }
    .contact-form { padding: 2rem 1.5rem; border-radius: 28px; }
    .form-stage::before { border-radius: 28px; transform: rotate(-2deg) translate(6px, 10px); }
    .contact-list li { font-size: 1rem; gap: 1rem; word-break: break-word; }
    .premium-form-card { padding: 1.75rem 1.25rem; border-radius: 26px; }
    .pillars-grid-v4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
    .pillar-card-premium { padding: 1.3rem 1rem 1.3rem; }
    .pillar-card-premium::before { top: 1.3rem; right: 1rem; }
    .pillar-card-premium p { font-size: 0.9rem; }
    .pillar-icon-box { width: 52px; height: 52px; margin-bottom: 1rem; }
    .mission-vision-wrapper { margin-top: -8rem; }
    .grid-intro { gap: 3rem; }
    .team-photo { box-shadow: -10px 10px 0 var(--primary); max-height: none; }
    .b-item { padding: 1.25rem; gap: 1rem; }
    .b-arrow { flex-basis: 44px; width: 44px; height: 44px; font-size: 1.2rem; }
    .marquee-divider { padding: 0.85rem 0; }
    .footer-content { gap: 2.5rem; }
}

/* ---------- Movimiento reducido: todo quieto y visible ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }
    .marquee-content { animation: none !important; }
    .highlight { background-size: 100% 100% !important; }
    .hero .highlight { background-size: 100% 0.08em !important; }
}

/* Ajustes de especificidad */
#header .social-icon-img { filter: var(--icon-orange); }
.hero .slide { display: block; align-items: initial; opacity: 0; }
.hero .slide.active { opacity: 1; }
@media (min-width: 1024px) { .hero .slide { display: grid; align-items: center; } }
@media (max-width: 1023px) {
    .hero .hero-title,
    .hero .hero-subtitle,
    .hero .highlight,
    .motion .slide.active .hero-title.split .highlight .wi { color: #fff; }
    .hero .hero-subtitle { font-weight: 600; }
    .hero .highlight { background-image: linear-gradient(#fff, #fff); }
    .hero-bloom { --petal: rgba(255, 255, 255, 0.92); }
}
@media (min-width: 1024px) {
    .hero-bloom {
        width: clamp(190px, 19vw, 320px);
        right: calc(var(--gutter) - clamp(70px, 7vw, 130px));
        top: max(8px, calc(var(--header-space) + var(--pad) - clamp(60px, 6vw, 110px)));
    }
}
/* Acento de Somos Proa: completo dentro de la banda, sin cortes rectos */
.brand-bloom { width: clamp(200px, 26vw, 380px); right: 5%; top: 50%; translate: 0 -62%; }
@media (max-width: 992px) {
    .brand-bloom { width: 34vw; right: 4%; top: 1.5rem; translate: none; --petal: rgba(255, 255, 255, 0.28); }
}
/* Aire constante alrededor de la onda */
@media (max-width: 1023px) {
    .hero .slide { padding-bottom: calc(var(--wave-h) + 10px + 2.5rem); }
}

/* Hub: sugerencia del país detectado, como botón secundario en el hero */
.country-suggest {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid rgba(253, 144, 4, 0.45);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.country-suggest[hidden] { display: none; }
.country-suggest:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 26px rgba(255, 89, 28, 0.18);
}
.country-suggest-flag {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.country-suggest-arrow {
    color: var(--orange-hot, #FF591C);
    transition: transform 0.3s;
}
.country-suggest:hover .country-suggest-arrow { transform: translateX(4px); }
.country-suggest:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.hub-hero .hero-btns { flex-wrap: wrap; align-items: center; }
/* Mobile/tablet: el isotipo se apoya en la esquina de la foto y no invade el título */
@media (max-width: 1023px) {
    .hero-bloom {
        width: min(24vw, 150px);
        top: calc(var(--header-space) + 100vw / var(--ratio) - min(24vw, 150px) - 8px);
    }
}

/* El título del hero nunca más ancho que su columna: la palabra más larga ("organizaciones") entra entera */
@media (min-width: 1024px) {
    .hero-content { container-type: inline-size; }
    .hero .hero-title { font-size: min(clamp(2.1rem, min(3.7vw, 6.6vh), 4.1rem), 13.5cqi) !important; }
}

/* Banderas del selector de idioma (imágenes: Windows no dibuja los emojis de banderas) */
.lang-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    vertical-align: middle;
    flex-shrink: 0;
}
.current-lang { display: inline-flex; align-items: center; justify-content: center; }
.lang-dropdown li { display: flex; align-items: center; gap: 0.6rem; }
