/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-accent: #5b8fa3;
    --color-accent-hover: #4a7586;
    --color-border: #e0e0e0;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text);
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-md);
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-accent);
    color: white;
    font-weight: 500;
    border-radius: 2px;
    transition: var(--transition);
    margin-top: var(--spacing-sm);
}

.hero-cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   GALERÍA
   ============================================ */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    cursor: pointer;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-light);
    aspect-ratio: 4 / 3;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-image-wrapper:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.gallery-location {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 3rem;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    margin: auto;
}

.lightbox-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
}

.lightbox-info {
    color: white;
    text-align: center;
}

.lightbox-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
}

.lightbox-category {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.lightbox-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   SECCIÓN HISTORIAS / BLOG
   ============================================ */
.stories-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.story-card {
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.story-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.story-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image {
    transform: scale(1.05);
}

.story-content {
    padding: var(--spacing-md);
}

.story-date {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.story-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.story-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.story-read-more {
    color: var(--color-accent);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.story-read-more::after {
    content: ' →';
    transition: var(--transition);
}

.story-read-more:hover::after {
    transform: translateX(5px);
}

.story-full {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: var(--spacing-lg);
    overflow-y: auto;
}

.story-full.active {
    display: block;
}

.story-full-content {
    max-width: 700px;
    margin: 0 auto;
    color: white;
    padding-top: var(--spacing-lg);
}

.story-full-content h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
}

.story-full-content time {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: var(--spacing-md);
}

.story-full-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.story-close {
    margin-top: var(--spacing-lg);
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: white;
    font-weight: 500;
    border-radius: 2px;
    transition: var(--transition);
}

.story-close:hover {
    background-color: var(--color-accent-hover);
}

/* ============================================
   SECCIÓN SOBRE MÍ
   ============================================ */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image-wrapper {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--color-bg-light);
    border-radius: 2px;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.about-text .section-title {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-md);
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--color-bg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(91, 143, 163, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-accent);
    color: white;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 2px;
    transition: var(--transition);
    margin-top: var(--spacing-sm);
}

.btn-submit:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: 2px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--spacing-md) 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        transition: transform var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text .section-title {
        text-align: center;
    }

    .about-image-wrapper {
        margin: 0 auto;
    }

    .lightbox-content {
        padding: var(--spacing-sm);
    }

    .lightbox-image {
        max-height: 50vh;
    }

    .lightbox-title {
        font-size: 1.5rem;
    }

    .story-full-content {
        padding: var(--spacing-md);
    }

    .story-full-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .contact-form {
        padding: var(--spacing-md);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

