/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px;
    line-height: 2;
    color: #000000;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 2rem;
}

a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

blockquote {
    font-style: italic;
    font-size: 1.25rem;
}

/* ========================================
   Scroll Animations
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Underline animation for titles */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #000000;
    transition: width 1s ease-out;
}

.section-title.visible::after {
    width: 100%;
}

/* Highlight key concepts */
.highlight {
    background-color: rgba(255, 255, 150, 0);
    transition: background-color 0.6s ease-out;
    padding: 2px 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.highlight.visible {
    background-color: rgba(255, 255, 150, 0.35);
}

/* ========================================
   Navigation Menu - Dropdown Style
   ======================================== */

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.nav-menu.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
}

.nav-cruz {
    width: 24px;
    height: auto;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.menu-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-button:hover {
    background-color: #f5f5f5;
    border-color: #cccccc;
}

.menu-button:active {
    background-color: #e8e8e8;
}

.menu-arrow {
    transition: transform 0.2s ease;
}

.menu-button.active .menu-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content li {
    margin: 0;
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.dropdown-link:hover {
    background-color: #f5f5f5;
    opacity: 1;
}

.dropdown-link-highlight {
    font-weight: 700;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 0;
}

/* Adjust body padding for fixed nav */
body {
    padding-top: 70px;
}

/* ========================================
   Container & Layout
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6rem;
}

.section {
    padding: 12rem 0;
}

.section-gray {
    background-color: #f5f5f5;
}

/* ========================================
   Header
   ======================================== */

.header {
    padding: 8rem 0 6rem;
    text-align: center;
}

.logo {
    width: 100px;
    height: auto;
    margin-bottom: 3rem;
}

.header-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.header-subtitle {
    font-size: 1.25rem;
    color: #666666;
    font-weight: 300;
    margin-bottom: 0;
}

/* ========================================
   Hero Image Section
   ======================================== */

.hero-image {
    width: 100%;
    height: 38vh;
    min-height: 436px;
    background-color: #ffffff;
    background-image: url(Assets/foto1.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Hero Section (Quote)
   ======================================== */

.hero {
    padding: 8rem 0;
    background-color: #ffffff;
}

.hero-quote {
    font-size: 2rem;
    line-height: 1.7;
    text-align: center;
    color: #000000;
    font-weight: 300;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
}

.hero-cite {
    display: block;
    margin-top: 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    font-style: normal;
    color: #999999;
    letter-spacing: 0.05em;
}

/* ========================================
   Content Blocks
   ======================================== */

.content-block {
    max-width: 100%;
}

.section-title {
    text-align: left;
    margin-bottom: 6rem;
    font-size: 3rem;
    font-weight: 400;
    max-width: 800px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    margin-top: 4rem;
}

.column {
    text-align: justify;
}

.column p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Content Split (Text + Image)
   ======================================== */

.content-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8rem;
    align-items: start;
}

.content-text {
    text-align: justify;
}

.content-text .section-title {
    text-align: left;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-image {
    align-self: start;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 0.9rem;
}

/* ========================================
   Sustainability Grid
   ======================================== */

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem 8rem;
    margin: 6rem 0;
}

.grid-item h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.grid-item p {
    font-size: 1.125rem;
    line-height: 2;
    margin-bottom: 0;
    text-align: justify;
}

/* Pull Quote */
.pullquote {
    text-align: center;
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 300;
    margin: 8rem auto 0;
    max-width: 700px;
    line-height: 1.6;
}

/* ========================================
   Support Section
   ======================================== */

.section-support {
    background-color: #f5f5f5;
}

.support-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.support-text {
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: #000000;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #333333;
    opacity: 1;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact a {
    font-size: 1.125rem;
    text-decoration: underline;
}

.footer-text {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 1rem;
    font-weight: 300;
}

.footer-credit {
    font-size: 0.875rem;
    color: #999999;
    margin-bottom: 0;
    font-weight: 300;
}

.footer-credit a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #000000;
    opacity: 1;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Header */
    .header {
        padding: 4rem 0 2rem;
    }

    .logo {
        width: 60px;
    }

    .header-title {
        font-size: 2.5rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    /* Hero Image - maintain aspect ratio on mobile */
    .hero-image {
        height: auto;
        min-height: auto;
        background-size: contain;
        background-repeat: no-repeat;
        aspect-ratio: 16/9; /* Ajusta según la proporción de tu foto */
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-quote {
        font-size: 1.25rem;
    }

    /* Typography */
    h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Two Column Layout */
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Content Split */
    .content-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .content-image {
        position: relative;
        top: 0;
    }

    /* Sustainability Grid */
    .sustainability-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Pull Quote */
    .pullquote {
        font-size: 1.5rem;
        margin: 3rem auto 1rem;
    }

    /* Support */
    .support-text {
        font-size: 1.25rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

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

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

    .hero-quote {
        font-size: 1.125rem;
    }

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

    h2 {
        font-size: 1.75rem;
    }

    .pullquote {
        font-size: 1.25rem;
    }

    /* Navigation responsive */
    .nav-container {
        padding: 0 2rem;
    }

    .dropdown-content {
        right: 1rem;
        min-width: 200px;
    }
}

/* ========================================
   Projects Page Styles
   ======================================== */

.header-small {
    padding: 4rem 0 3rem;
}

.project-detail {
    max-width: 100%;
}

.project-header {
    margin-bottom: 4rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.project-status,
.project-category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status {
    background-color: #000000;
    color: #ffffff;
}

.project-category {
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #e0e0e0;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: start;
}

.project-image {
    position: sticky;
    top: calc(70px + 3rem);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-description h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.project-description h3:first-child {
    margin-top: 0;
}

.project-list {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.project-list li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f5f5f5;
}

.spec-item {
    font-size: 1rem;
}

.spec-item strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-quote {
    font-style: italic;
    font-size: 1.5rem;
    text-align: center;
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.project-cta {
    text-align: center;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid #000000;
}

.project-cta-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666666;
    font-style: italic;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.project-card {
    padding: 3rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-status-small {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f5f5f5;
    color: #666666;
    border: 1px solid #e0e0e0;
}

/* Responsive for projects page */
@media (max-width: 768px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-image {
        position: relative;
        top: 0;
    }

    .project-specs {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        padding: 2rem;
    }
}

/* ========================================
   Bank Details Styles
   ======================================== */

.bank-details {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 3rem;
    margin: 3rem 0;
}

.bank-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #000000;
}

.bank-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.bank-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bank-info-item.bank-info-full {
    grid-column: 1 / -1;
}

.bank-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bank-value {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
}

.bank-info-full .bank-value {
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    .bank-details {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .bank-info-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .bank-details h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .bank-label {
        font-size: 0.8rem;
    }

    .bank-value {
        font-size: 0.9rem;
    }

    .bank-info-full .bank-value {
        font-size: 0.95rem;
    }
}

/* Móviles grandes (iPhone 12 Pro, iPhone 14, etc) */
@media (max-width: 430px) {
    .bank-details {
        padding: 1.5rem 1.25rem;
        margin: 1.5rem 0;
    }

    .bank-info-grid {
        gap: 1rem;
    }

    .bank-details h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .bank-label {
        font-size: 0.75rem;
    }

    .bank-value {
        font-size: 0.8rem;
    }

    .bank-info-full .bank-value {
        font-size: 0.85rem;
    }
}

/* Móviles pequeños (iPhone 5/SE, Galaxy pequeños) */
@media (max-width: 360px) {
    .bank-details {
        padding: 1.25rem 1rem;
        margin: 1.25rem 0;
    }

    .bank-info-grid {
        gap: 0.875rem;
    }

    .bank-details h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .bank-label {
        font-size: 0.7rem;
    }

    .bank-value {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .bank-info-full .bank-value {
        font-size: 0.8rem;
    }
}

/* ========================================
   PayPal Container Styles
   ======================================== */

.paypal-container {
    margin: 3rem auto;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.paypal-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #000000;
    text-align: center;
    width: 100%;
}

#paypal-container-DPLVE7S4VPCH6,
#paypal-container-project-DPLVE7S4VPCH6,
#paypal-container-general-DPLVE7S4VPCH6 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 60px;
    overflow: visible;
}

/* Asegurar que el iframe de PayPal esté centrado y tenga espacio suficiente */
.paypal-container iframe,
.paypal-container > div {
    margin: 0 auto !important;
    display: block !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 45px !important;
    text-align: center !important;
}

/* Forzar centrado de todos los elementos dentro del contenedor PayPal */
.paypal-container * {
    text-align: center !important;
}

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    .paypal-container {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
        max-width: 90%;
    }

    .paypal-container h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    #paypal-container-DPLVE7S4VPCH6,
    #paypal-container-project-DPLVE7S4VPCH6,
    #paypal-container-general-DPLVE7S4VPCH6 {
        max-width: 100%;
    }
}

/* Móviles grandes */
@media (max-width: 430px) {
    .paypal-container {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
        max-width: 95%;
    }

    .paypal-container h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
}

/* Móviles pequeños */
@media (max-width: 360px) {
    .paypal-container {
        padding: 1.25rem 0.75rem;
        margin: 1.25rem auto;
    }

    .paypal-container h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}
