/* =============================================
   QUÉ HACER EN PUERTO ESCONDIDO - STYLES
   Boda Ana Paola & Héctor
   ============================================= */

/* ===== VARIABLES ===== */
:root {
    --color-brown: #8B6D5C;
    --color-brown-dark: #6b5430;
    --color-beige: #eae4cc;
    --color-beige-light: #f5f1e8;
    --color-white: #ffffff;
    --color-text-dark: #3B2F2F;
    --color-text-light: #f5f1e8;
    
    --font-script: 'League Script', Georgia, serif;
    --font-body: 'Lora', serif;
    --font-button: 'Lora', serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-beige-light);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== NAVIGATION ===== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.nav-back:hover {
    opacity: 0.8;
}

.nav-back svg {
    width: 20px;
    height: 20px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('imagenes/FotosQuehacerenPuerto/playas-puerto-escondido-e1656083572518.jpg') center/cover no-repeat;
    background-color: #171817;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-script);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    color: var(--color-white);
}

.hero-subtitle {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    color: var(--color-white);
}

/* ===== INTRO SECTION ===== */
.intro-section {
    text-align: center;
    padding: 4rem 1rem;
}

.intro-section .intro-image {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    height: 550px;
}

.intro-section .intro-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 40%;
}

.intro-section .intro-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #ffffff;
    line-height: 1.6;
    font-style: italic;
    padding: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* ===== SECTIONS BASE ===== */
.section {
    padding: 6rem 2rem;
    min-height: 80vh;
}

.section-light {
    background: url('imagenes/fondobeige.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 0;
}

.section-light > * {
    position: relative;
    z-index: 1;
}

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

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

/* Estilos para secciones café oscuro - texto claro */
.section-brown .section-title.script {
    color: var(--color-white);
}

.section-brown .section-note {
    color: var(--color-beige);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title.script {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-brown);
}

.section-title.script.light {
    color: var(--color-white);
}

.section-note {
    text-align: left;
    font-size: 0.8rem;
    color: var(--color-brown);
    margin-top: 1rem;
    font-style: italic;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-note.light {
    color: var(--color-beige);
}

/* Iconos de estrella */
.star-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.star-icon-small {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-grid.four-cols {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cards-grid.three-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===== CARD STYLES ===== */
.card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.card-dark {
    background: var(--color-brown-dark);
    color: var(--color-white);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

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

.card-content {
    padding: 1rem 0.5rem;
    text-align: center;
}

.card-content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

/* Texto en secciones café oscuro */
.section-brown .card-content h3 {
    color: var(--color-white);
}

.section-brown .card-content p {
    color: var(--color-beige);
}

.card-dark .card-content h3 {
    color: var(--color-white);
}

.card-content p {
    font-size: 0.8rem;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-dark .card-content p {
    color: var(--color-beige);
}

.card-subtitle {
    font-size: 0.85rem !important;
    opacity: 0.8;
}

/* ===== BUTTONS ===== */
.btn-card {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-brown);
    color: var(--color-white);
    font-family: var(--font-button);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 3px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.btn-card:hover {
    background-color: var(--color-brown-dark);
    transform: translateY(-2px);
}

.btn-card.btn-light {
    background-color: var(--color-beige);
    color: var(--color-brown-dark);
}

.btn-card.btn-light:hover {
    background-color: var(--color-white);
}

/* ===== ACTIVITY CARDS ===== */
.card-activity .card-image {
    height: 200px;
}

.card-activity .card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.card-activity .card-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===== LAGUNA SECTION ===== */
.section-laguna {
    background-color: var(--color-brown);
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
}

.laguna-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.laguna-left {
    color: var(--color-white);
}

.laguna-left .section-title {
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.1;
    color: var(--color-white);
}

.laguna-right {
    display: flex;
    justify-content: center;
}

.laguna-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.laguna-images img {
    width: 100%;
    max-width: 450px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.laguna-intro {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--color-beige);
}

.laguna-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.laguna-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-beige);
}

.laguna-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-white);
}

.laguna-recommendation {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-beige);
}

.section-laguna .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

/* ===== BONUS SECTION ===== */
.bonus-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.bonus-left {
    color: var(--color-text);
}

.bonus-left .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--color-brown);
}

.bonus-right {
    display: flex;
    justify-content: center;
}

.bonus-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bonus-images img {
    width: 100%;
    max-width: 650px;
    height: 480px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

.bonus-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.bonus-card h3 {
    font-family: var(--font-script);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-brown);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.bonus-card p {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.bonus-tip {
    font-style: italic;
    color: var(--color-brown) !important;
    font-size: 0.95rem !important;
    margin-top: 1rem;
}

/* ===== CONTACTS SECTION ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    text-align: left;
}

.contact-card h4 {
    font-family: var(--font-script);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brown);
    margin-bottom: 0.3rem;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Estilos para contactos en sección café oscuro */
.section-brown .contact-card h4 {
    color: var(--color-white);
}

.section-brown .contact-card p {
    color: var(--color-beige);
}

.section-brown .contact-phone,
.section-brown .contact-social {
    color: var(--color-beige);
}

.section-brown .contact-phone:hover,
.section-brown .contact-social:hover {
    color: var(--color-white);
}

.contact-phone,
.contact-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-brown);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-phone:hover,
.contact-social:hover {
    color: var(--color-brown-dark);
}

.contact-phone svg,
.contact-social svg {
    flex-shrink: 0;
}

/* ===== FOOTER HASHTAG ===== */
.footer-hashtag {
    background-image: url('imagenes/FotosQuehacerenPuerto/PHGoldenweekend.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    min-height: 900px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 8rem;
}

.footer-hashtag p {
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-right: 10%;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 900px) {
    .laguna-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .laguna-left .section-title {
        text-align: center;
    }
    
    .laguna-left {
        order: 1;
    }
    
    .laguna-right {
        order: 2;
    }
    
    .laguna-images {
        flex-direction: row;
        justify-content: center;
    }
    
    .laguna-images img {
        max-width: 280px;
        height: 180px;
    }
    
    .laguna-list {
        display: inline-block;
        text-align: left;
    }
    
    /* Bonus responsive tablet */
    .bonus-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bonus-left .section-title {
        text-align: center;
    }
    
    .bonus-card {
        text-align: center;
    }
    
    .bonus-images {
        flex-direction: row;
        justify-content: center;
    }
    
    .bonus-images img {
        max-width: 280px;
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero-title,
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .intro-text {
        font-size: 0.9rem;
        padding: 1rem;
        line-height: 1.5;
    }
    
    .intro-section {
        padding: 1rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .intro-section .intro-image {
        border-radius: 8px;
        margin: 0 auto;
        height: 65vh;
        width: 100%;
    }
    
    .cards-grid {
        gap: 1rem;
    }
    
    .cards-grid.four-cols,
    .cards-grid.three-cols {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 200px;
    }
    
    .section-laguna {
        min-height: auto;
        padding: 3rem 1rem;
    }
    
    .laguna-content {
        gap: 2rem;
    }
    
    .laguna-images {
        flex-direction: column;
        align-items: center;
    }
    
    .laguna-images img {
        max-width: 100%;
        height: 180px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        text-align: center;
    }
    
    .bonus-card {
        padding: 1.5rem;
    }
    
    .bonus-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bonus-images {
        flex-direction: column;
        align-items: center;
    }
    
    .bonus-images img {
        max-width: 100%;
        height: 180px;
    }
    
    .footer-hashtag {
        min-height: 600px;
        background-size: cover;
        background-position: 18% center;
        align-items: flex-end;
        padding-bottom: 3rem;
        padding-top: 0;
    }
    
    .footer-hashtag p {
        font-size: 1.2rem;
        margin-right: 5%;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .section {
        padding: 4rem 2rem;
    }
    
    .cards-grid.four-cols {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .cards-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
