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

:root {
    --primary-color: #ffffff;
    --secondary-color: #f0f4f8;
    /* Colores proporcionados */
    --accent-color: #c9cd47;
    --accent-blue: #217dc0;
    --text-dark: #4a4a4a;
    --text-medium: #7a7a7a;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --dark-bg: #2d3748;
    --spacing-unit: 1rem;
    --max-width: 1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2.5);
}

/* Header Top */
.header-top {
    background-color: var(--secondary-color);
    padding: calc(var(--spacing-unit) * 0.75) 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.contact-actions {
    display: flex;
    gap: calc(var(--spacing-unit) * 1);
    align-items: center;
    flex-shrink: 0;
}

.contact-label {
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.contact-icons {
    display: flex;
    gap: calc(var(--spacing-unit) * 0.75);
    align-items: center;
}

.rate-us-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-left: -90px; /* Más espacio a la izquierda para separar de Donanos */
}

.rate-us-label {
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.donate-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-left: 90px; /* Más espacio a la derecha para separar de Valóranos */
}

.donate-label {
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.rate-us-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.social-top {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    flex-shrink: 0;
}

.social-label {
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .social-label {
        display: none;
    }
}

.social-icons {
    display: flex;
    gap: calc(var(--spacing-unit) * 0.75);
    align-items: center;
}

.social-icon {
    min-width: 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-blue);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    font-family: Arial, sans-serif;
    padding: 0;
}

.rate-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.social-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.social-phone svg,
.social-whatsapp svg {
    width: 16px;
    height: 16px;
    display: block;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav {
    background-color: var(--primary-color);
    padding: calc(var(--spacing-unit) * 1.5) 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.hamburger-menu {
    flex: 0 0 auto;
    margin-left: auto;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 65px;
    width: auto;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.logo-img:hover {
    opacity: 0.8;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.logo-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    margin: 0;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-blue);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger-menu:hover span {
    background-color: var(--accent-color);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    z-index: 1002;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: calc(var(--spacing-unit) * 3);
    overflow-y: auto;
    z-index: 1002;
}

.mobile-menu-close {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-menu-close:hover {
    color: var(--accent-blue);
}

.mobile-nav-menu {
    list-style: none;
    margin-top: calc(var(--spacing-unit) * 6);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
}

.mobile-nav-link {
    display: block;
    padding: calc(var(--spacing-unit) * 1.5);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    color: var(--accent-blue);
    padding-left: calc(var(--spacing-unit) * 2);
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    margin-top: 120px;
    padding: calc(var(--spacing-unit) * 8) 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 125, 192, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.5);
    background-color: var(--accent-color);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 3);
    letter-spacing: -0.01em;
}

.hero-description-wrapper {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s;
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.05);
}

/* Form Section */
.hero-form-section {
    position: relative;
    z-index: 1;
}

.hero-form-card {
    background-color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: calc(var(--spacing-unit) * 2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.form-row-inline {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    flex-wrap: wrap;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.form-group {
    flex: 1 1 auto;
    min-width: 150px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.2);
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(33, 125, 192, 0.1);
}

.form-group input::placeholder {
    color: var(--text-medium);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(var(--spacing-unit) * 1.2) center;
    padding-right: calc(var(--spacing-unit) * 3);
    cursor: pointer;
}

.form-group select option {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.form-row-inline {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.btn-form {
    width: 100%;
    max-width: 100%;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
    white-space: nowrap;
    display: block;
    box-sizing: border-box;
}

/* Sections */
.section {
    padding: calc(var(--spacing-unit) * 8) 0;
    background-color: var(--primary-color);
}

.section-alt {
    background-color: var(--secondary-color);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: calc(var(--spacing-unit) * 1);
    text-align: center;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-description {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 4);
}

/* Team Grid - 2 columnas en lugar de 3 */
.team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background-color: var(--primary-color);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-blue);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto calc(var(--spacing-unit) * 2.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.service-card:hover .service-icon:not(.service-team) {
    transform: scale(1.1);
    color: var(--accent-color);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.service-team {
    width: 100%;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.team-label {
    font-size: 0.95rem;
    color: var(--text-medium);
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 0.25);
    text-align: center;
}

.team-photos {
    display: grid;
    grid-template-columns: repeat(4, 50px);
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) * -1);
    padding: calc(var(--spacing-unit) * 0.5);
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    row-gap: calc(var(--spacing-unit) * 0.5);
    margin: 0 auto;
}

.team-photos a {
    display: block;
    text-decoration: none;
}

.team-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, z-index 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
    display: block;
}


.team-photos a:hover .team-photo {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: var(--accent-blue);
}

.service-card:hover .team-photo {
    border-color: var(--accent-blue);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--text-dark);
    line-height: 1.3;
}

.service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: var(--accent-blue);
}

.service-text {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: left;
}

/* Buttons */
.btn {
    padding: calc(var(--spacing-unit) * 1.2) calc(var(--spacing-unit) * 3);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1a6ba8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 125, 192, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #b5b93f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 205, 71, 0.3);
}

.btn-form {
    background-color: var(--accent-blue);
    color: #ffffff;
    width: 100%;
    max-width: 100%;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
    font-weight: 700;
    display: block;
    box-sizing: border-box;
}

.btn-form:hover {
    background-color: #1a6ba8;
}

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

/* Form Messages */
.form-message {
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Testimonials */
.testimonials-carousel-wrapper {
    overflow: visible;
    margin-top: calc(var(--spacing-unit) * 4);
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    box-sizing: border-box;
}

.carousel-arrow {
    background-color: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-arrow-left {
    left: calc(var(--spacing-unit) * -1);
}

.carousel-arrow-right {
    right: calc(var(--spacing-unit) * -1);
}

.carousel-arrow:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.testimonials-carousel {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 1);
    -webkit-overflow-scrolling: touch;
    flex: 1;
    position: relative;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    box-sizing: border-box;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    background-color: var(--primary-color);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: calc(33.333% - calc(var(--spacing-unit) * 2));
    max-width: calc(33.333% - calc(var(--spacing-unit) * 2));
    flex-shrink: 0;
    scroll-snap-align: start;
    height: 100%;
    min-height: 280px;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-blue);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    letter-spacing: 3px;
    line-height: 1;
}

.testimonial-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: calc(var(--spacing-unit) * 1);
    font-size: 1rem;
    flex-grow: 1;
    position: relative;
    padding-left: calc(var(--spacing-unit) * 1.5);
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.testimonial-text-short {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.testimonial-text-full {
    display: block;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: calc(var(--spacing-unit) * 0.5) 0;
    margin-top: calc(var(--spacing-unit) * 0.5);
    margin-bottom: calc(var(--spacing-unit) * 1);
    text-align: left;
    transition: color 0.3s ease;
    align-self: flex-start;
    font-family: inherit;
}

.read-more-btn:hover {
    color: var(--accent-color);
}

.read-more-btn.hidden {
    display: none;
}

/* Testimonial Modal */
.testimonial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.testimonial-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.testimonial-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    padding: calc(var(--spacing-unit) * 3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
}

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

.testimonial-modal-close {
    position: absolute;
    top: calc(var(--spacing-unit) * 1);
    right: calc(var(--spacing-unit) * 1);
    background: none;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: calc(var(--spacing-unit) * 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
}

.testimonial-modal-close:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.testimonial-modal-stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    line-height: 1;
}

.testimonial-modal-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    position: relative;
    padding-left: calc(var(--spacing-unit) * 2);
}

.testimonial-modal-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--accent-blue);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-modal-author {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    margin-top: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 1.5);
    border-top: 1px solid var(--border-color);
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 3rem;
    color: var(--accent-blue);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: auto;
    padding-top: calc(var(--spacing-unit) * 1.5);
    border-top: 1px solid var(--border-color);
}

.testimonial-card.expanded {
    min-height: auto;
}


/* Footer */
.footer {
    background-color: var(--text-dark);
    padding: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 3) 0;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacing-unit) * 3);
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: #ffffff;
}

.footer-logo-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: #ffffff;
}

.footer-logo-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: rgba(255, 255, 255, 0.9);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.footer-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-services-list li {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.footer-service-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    font-size: 0.95rem;
}

.footer-service-link:hover {
    color: var(--accent-color);
    padding-left: calc(var(--spacing-unit) * 0.5);
    transition: all 0.2s;
}

.footer-address {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.footer-contact strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-schedule {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.footer-schedule strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    margin-top: calc(var(--spacing-unit) * 4);
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1.5);
}

.footer-copyright-left {
    flex: 0 0 auto;
}

.footer-copyright-left p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-copyright-right {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-main {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 5);
        margin-bottom: calc(var(--spacing-unit) * 5);
    }

    .hero-right {
        order: 2;
    }

    .hero-left {
        order: 1;
        text-align: center;
        align-items: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 1.5);
    }

    .header-top {
        padding: calc(var(--spacing-unit) * 0.5) 0;
    }

    .header-top-content {
        flex-wrap: nowrap;
        gap: calc(var(--spacing-unit) * 1);
        justify-content: space-between;
        align-items: center;
    }

    .contact-actions {
        flex: 0 0 auto;
        order: 1;
    }

    .rate-us-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: calc(var(--spacing-unit) * 0.5);
        margin-left: -70px; /* Más espacio en tablet */
    }

    .donate-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: calc(var(--spacing-unit) * 0.5);
        margin-left: 70px; /* Más espacio en tablet */
    }

    .rate-us-label {
        font-size: 0.85rem;
    }

    .donate-label {
        font-size: 0.85rem;
    }

    .rate-icon svg {
        width: 13px;
        height: 13px;
    }

    .social-top {
        flex: 0 0 auto;
        order: 3;
        margin-left: auto;
    }

    .social-label {
        display: none;
    }

    .rate-us-label {
        display: none;
    }

    .donate-label {
        display: none;
    }

    .contact-label {
        display: none;
    }

    /* Botones de navegación responsive en tablet */
    div[style*="text-align: center"] {
        display: flex !important;
        flex-direction: column !important;
        gap: calc(var(--spacing-unit) * 1.5) !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    div[style*="text-align: center"] a[style*="display: inline-block"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0;
    }

    .nav {
        padding: calc(var(--spacing-unit) * 1) 0;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .logo-link {
        gap: calc(var(--spacing-unit) * 1);
    }

    .nav-container {
        padding: 0 calc(var(--spacing-unit) * 1.5);
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex: 0 0 auto;
        margin-right: auto;
    }

    .logo-img {
        height: 50px;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .logo-link {
        gap: calc(var(--spacing-unit) * 1);
    }

    .hamburger-menu {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .hero {
        margin-top: 100px;
        padding: calc(var(--spacing-unit) * 5) 0;
    }

    .hero-main {
        gap: calc(var(--spacing-unit) * 4);
    }

    .hero-form-card {
        padding: calc(var(--spacing-unit) * 2);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 1.2);
    }

    .form-row-inline {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1.2);
        margin-bottom: calc(var(--spacing-unit) * 1);
    }

    .form-row-inline .form-group {
        width: 100%;
        min-width: 100%;
    }

    .btn-form {
        width: 100%;
    }

    .section {
        padding: calc(var(--spacing-unit) * 5) 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: calc(var(--spacing-unit) * 3);
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: calc(var(--spacing-unit) * 3);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--spacing-unit) * 3);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-carousel-wrapper {
        padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1.5);
    }

    .testimonials-carousel {
        gap: calc(var(--spacing-unit) * 2);
        padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 0.5);
    }

    .testimonial-card {
        width: calc((100% - calc(var(--spacing-unit) * 2)) / 2);
        min-width: calc((100% - calc(var(--spacing-unit) * 2)) / 2);
        max-width: calc((100% - calc(var(--spacing-unit) * 2)) / 2);
        flex-shrink: 0;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .service-card {
        padding: 0;
    }

    /* Padding para fotos de perfil en página de equipo */
    .team-grid .service-card {
        padding: calc(var(--spacing-unit) * 2.5);
    }

    .team-grid .service-card img[style*="border-radius: 50%"] {
        margin-top: calc(var(--spacing-unit) * 1) !important;
    }

    .team-photo {
        width: 50px;
        height: 50px;
    }

    .team-photos {
        grid-template-columns: repeat(8, 50px);
        gap: calc(var(--spacing-unit) * -0.8);
        overflow-x: auto;
        justify-content: center;
        justify-items: center;
        padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1);
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
    }

    .team-photos::-webkit-scrollbar {
        display: none;
    }

    .team-photos {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .service-image {
        height: 180px;
    }

    .team-label {
        margin-bottom: calc(var(--spacing-unit) * 0.15);
    }

    .testimonials-carousel-wrapper {
        padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 1);
    }

    .testimonials-carousel {
        gap: calc(var(--spacing-unit) * 1.5);
        padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 0.5);
    }

    .testimonial-card {
        padding: calc(var(--spacing-unit) * 3);
        width: calc(85% - calc(var(--spacing-unit) * 0.75));
        min-width: calc(85% - calc(var(--spacing-unit) * 0.75));
        max-width: calc(85% - calc(var(--spacing-unit) * 0.75));
        flex-shrink: 0;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .testimonial-text {
        padding-left: calc(var(--spacing-unit) * 1);
    }

    .testimonial-text::before {
        font-size: 2.5rem;
    }

    .footer {
        padding: calc(var(--spacing-unit) * 5) 0 calc(var(--spacing-unit) * 3) 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 1);
    }

    .header-top {
        padding: calc(var(--spacing-unit) * 0.5) 0;
    }

    .header-top-content {
        flex-wrap: nowrap;
        gap: calc(var(--spacing-unit) * 0.75);
        justify-content: space-between;
    }

    .contact-actions {
        flex: 0 0 auto;
        order: 1;
    }

    .rate-us-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: calc(var(--spacing-unit) * 0.5);
        margin-left: -50px; /* Más espacio en mobile */
    }

    .donate-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: calc(var(--spacing-unit) * 0.5);
        margin-left: 50px; /* Más espacio en mobile */
    }

    .social-top {
        flex: 0 0 auto;
        order: 3;
        margin-left: auto;
    }

    .social-label {
        display: none;
    }

    .rate-us-label {
        display: none;
    }

    .donate-label {
        display: none;
    }

    .rate-icon svg {
        width: 12px;
        height: 12px;
    }

    .contact-label {
        display: none;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.75rem;
        padding: 0;
    }

    .social-icon svg {
        width: 14px;
        height: 14px;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .logo-link {
        gap: calc(var(--spacing-unit) * 0.75);
    }

    .nav-container {
        padding: 0 calc(var(--spacing-unit) * 1);
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex: 0 0 auto;
        margin-right: auto;
    }

    .logo-img {
        height: 45px;
    }

    .hamburger-menu {
        width: 26px;
        height: 26px;
    }

    .hamburger-menu span {
        height: 2px;
    }

    .mobile-menu {
        max-width: 100%;
    }

    .mobile-menu-content {
        padding: calc(var(--spacing-unit) * 2);
    }

    .mobile-nav-link {
        font-size: 1rem;
        padding: calc(var(--spacing-unit) * 1.2);
    }

    .hero {
        margin-top: 90px;
        padding: calc(var(--spacing-unit) * 3) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .form-card {
        padding: calc(var(--spacing-unit) * 2);
    }

    .form-title {
        font-size: 1.25rem;
    }

    .form-description {
        font-size: 0.85rem;
    }

    .form-group input {
        padding: calc(var(--spacing-unit) * 1);
        font-size: 0.9rem;
    }

    .btn {
        padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.5);
        font-size: 0.9rem;
    }

    .section {
        padding: calc(var(--spacing-unit) * 4) 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-image {
        height: 160px;
    }

    .service-title {
        font-size: 1.15rem;
        margin: calc(var(--spacing-unit) * 1.2);
    }

    .service-text {
        margin: 0 calc(var(--spacing-unit) * 1.2) calc(var(--spacing-unit) * 1.5);
        font-size: 0.9rem;
    }

    .team-photo {
        width: 40px;
        height: 40px;
    }

    .team-photos {
        grid-template-columns: repeat(8, 40px);
        gap: calc(var(--spacing-unit) * -0.6);
        overflow-x: auto;
        justify-content: center;
        justify-items: center;
        padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1);
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
    }

    .team-photos::-webkit-scrollbar {
        display: none;
    }

    .team-photos {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .team-label {
        margin-bottom: calc(var(--spacing-unit) * 0.15);
    }

    .testimonials-carousel-wrapper {
        padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 0.5);
    }

    .testimonials-carousel {
        gap: calc(var(--spacing-unit) * 1);
        padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 0.25);
    }

    .testimonial-card {
        padding: calc(var(--spacing-unit) * 2.5);
        width: calc(85% - calc(var(--spacing-unit) * 0.5));
        min-width: calc(85% - calc(var(--spacing-unit) * 0.5));
        max-width: calc(85% - calc(var(--spacing-unit) * 0.5));
        flex-shrink: 0;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        display: flex; /* Mostrar flechas para navegar */
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .testimonial-stars {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        padding-left: calc(var(--spacing-unit) * 1);
    }

    .testimonial-text::before {
        font-size: 2rem;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }

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

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

    /* Padding para fotos de perfil en página de equipo en mobile */
    .team-grid .service-card {
        padding: calc(var(--spacing-unit) * 2.5);
    }

    .team-grid .service-card img[style*="border-radius: 50%"] {
        margin-top: calc(var(--spacing-unit) * 1) !important;
    }

    .footer {
        padding: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 2) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2.5);
        text-align: left;
    }

    .footer-services-list {
        text-align: left;
    }

    .footer-column h3 {
        font-size: 1rem;
    }

    .footer-column p {
        font-size: 0.9rem;
    }

    .footer-copyright {
        margin-top: calc(var(--spacing-unit) * 3);
        padding-top: calc(var(--spacing-unit) * 2.5);
        flex-direction: column;
        text-align: center;
        gap: calc(var(--spacing-unit) * 1);
    }

    .footer-copyright-left,
    .footer-copyright-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .social-icon {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .social-icon svg {
        width: 12px;
        height: 12px;
    }

    .testimonial-modal-content {
        padding: calc(var(--spacing-unit) * 2);
        max-width: 95%;
        max-height: 90vh;
    }

    .testimonial-modal-text {
        font-size: 1rem;
        padding-left: calc(var(--spacing-unit) * 1.5);
    }

    .testimonial-modal-text::before {
        font-size: 3rem;
        top: -5px;
    }

    .testimonial-modal-stars {
        font-size: 1.3rem;
    }

    /* Botones de navegación responsive en mobile pequeño */
    div[style*="text-align: center"] {
        display: flex !important;
        flex-direction: column !important;
        gap: calc(var(--spacing-unit) * 1.5) !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    div[style*="text-align: center"] a[style*="display: inline-block"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        display: block !important;
    }
}
