/* =====================================================
   MEJORAS MODERNAS — irenelamelas.com
   ===================================================== */

/* --- Importar nuevas fuentes premium --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Jost:wght@300;400;500;600;700&display=swap');

/* =====================================================
   VARIABLES DE COLOR
   ===================================================== */
:root {
    --verde: rgb(149, 188, 0);
    --verde-oscuro: rgb(120, 155, 0);
    --verde-suave: rgba(149, 188, 0, 0.12);
    --gris-texto: #333;
    --gris-suave: #f8f8f8;
    --blanco: #fff;
    --sombra: 0 4px 20px rgba(0,0,0,0.10);
    --sombra-hover: 0 8px 32px rgba(0,0,0,0.18);
    --transicion: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   SCROLL SUAVE GLOBAL
   ===================================================== */
html {
    scroll-behavior: smooth;
}

/* =====================================================
   HEADER MEJORADO — Logo + Nav en misma línea
   ===================================================== */
header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

#stuck_container {
    padding: 10px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

header h1 {
    float: none;
    margin: 0;
    padding: 0;
    text-align: left;
    flex-shrink: 0;
}

header h1:after {
    display: none !important;
}

header h1 a img {
    width: 280px !important;
    max-width: 280px !important;
    height: auto;
    transition: opacity var(--transicion);
}

header h1 a:hover img {
    opacity: 0.85;
}

.menu_block {
    margin-left: auto;
}

/* =====================================================
   NAVEGACION — Mejoras de hover y estilo
   ===================================================== */
.sf-menu li a {
    font-family: 'Jost', 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 6px 14px !important;
    border-radius: 6px;
    transition: background var(--transicion), color var(--transicion) !important;
    color: #444 !important;
}

.sf-menu li.current a,
.sf-menu li a:hover {
    color: var(--verde) !important;
    background: var(--verde-suave);
}

/* =====================================================
   BARRA DE CITA — CTA Activado
   ===================================================== */
.block1 {
    background: linear-gradient(135deg, rgb(149,188,0) 0%, rgb(110,148,0) 100%);
    padding: 32px 0 38px;
}

.block1 .rel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.btn-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 40px;
    background: #fff;
    color: var(--verde-oscuro) !important;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all var(--transicion);
    border: 2px solid transparent;
}

.btn-cta:hover {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

/* =====================================================
   GALERIA — Restaurar y mejorar estilos gal_item
   ===================================================== */
.gal_item {
    display: block;
    position: relative;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: var(--sombra);
    transition: box-shadow var(--transicion), transform var(--transicion);
}

.gal_item:hover {
    box-shadow: var(--sombra-hover);
    transform: translateY(-3px);
}

.gal_item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gal_item:hover img {
    transform: scale(1.04);
}

.gal_item .gal_caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font: 600 16px/1.4 'Inter', 'Open Sans', sans-serif;
    padding: 28px 14px 12px;
    transform: translateY(100%);
    transition: transform var(--transicion);
    border-radius: 0 0 6px 6px;
}

.gal_item:hover .gal_caption {
    transform: translateY(0);
}

.gal_magnify {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    background: url(../images/magnify.png) center center no-repeat;
    background-size: 40px 40px;
    opacity: 0;
    transition: opacity var(--transicion);
}

.gal_item:hover .gal_magnify {
    opacity: 0.8;
}

/* =====================================================
   FILTROS DE PORTAFOLIO
   ===================================================== */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 30px 0 40px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--verde);
    border-radius: 50px;
    background: transparent;
    color: var(--verde);
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transicion);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--verde);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(149,188,0,0.35);
    transform: translateY(-1px);
}

.filter-section-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0 8px;
}

.filter-section-title h3 {
    transition: opacity 0.3s ease;
}

/* Items ocultos durante filtrado */
.gal-item-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gal-item-wrapper.hidden {
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0 0 40px;
}

/* =====================================================
   FOTO SECCIÓN INDEX — Mejoras layout
   ===================================================== */
.content .grid_4 h3 {
    color: var(--verde);
    font-family: 'Cormorant Garamond', 'BenchNine', serif;
    font-size: 30px;
}

/* =====================================================
   VIDEOS — Mejor presentación
   ===================================================== */
.video-section {
    background: var(--gris-suave);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.video-section video {
    border-radius: 8px;
    box-shadow: var(--sombra);
}

.video-label {
    font-family: 'Cormorant Garamond', serif;
    color: var(--verde);
    font-size: 22px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
    padding-top: 0;
}

/* =====================================================
   CARDS DE CONTACTO
   ===================================================== */
.contact-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--sombra);
    padding: 28px 32px;
    margin-bottom: 24px;
    transition: box-shadow var(--transicion), transform var(--transicion);
}

.contact-card:hover {
    box-shadow: var(--sombra-hover);
    transform: translateY(-2px);
}

.contact-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.contact-locations {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-locations .location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.contact-locations .fa {
    color: var(--verde);
    width: 18px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--gris-suave);
    color: #333 !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all var(--transicion);
}

.social-link:hover {
    background: var(--verde-suave);
    color: var(--verde-oscuro) !important;
    transform: translateX(4px);
}

.social-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

/* =====================================================
   FOOTER MEJORADO
   ===================================================== */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 40px;
}

footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

footer .footer-brand img {
    width: 200px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

footer .footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #aaa;
}

footer .footer-contact-info a {
    color: #ccc;
    transition: color var(--transicion);
}

footer .footer-contact-info a:hover {
    color: var(--verde);
}

footer .footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    transition: background var(--transicion), transform var(--transicion);
    font-size: 18px;
}

footer .footer-social a:hover {
    background: var(--verde);
    transform: translateY(-3px);
}

footer .footer-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

footer .footer-bottom a {
    color: #888;
    transition: color var(--transicion);
}

footer .footer-bottom a:hover {
    color: var(--verde);
}

footer .copy {
    float: none;
    color: #888;
    font-size: 13px;
}

/* =====================================================
   ANIMACIONES FADE-IN al scroll
   ===================================================== */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =====================================================
   SECCION INICIO — mejoras
   ===================================================== */
.content .gallery {
    padding-top: 10px;
}

.instagram-link-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transicion);
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(220,39,67,0.35);
}

.instagram-link-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,39,67,0.45);
    color: #fff !important;
}

.instagram-link-hero img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* =====================================================
   ENLACES PAGE — Grid mejorado
   ===================================================== */
.enlaces-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 30px 0;
}

.enlaces-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.enlaces-item-date {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--verde);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

/* =====================================================
   RESPONSIVE MOBILE MEJORADO
   ===================================================== */
@media (max-width: 768px) {
    header .grid_12 {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    header h1 {
        text-align: center;
    }

    header h1 a img {
        width: 220px !important;
        max-width: 220px !important;
    }

    .menu_block {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .portfolio-filters {
        gap: 6px;
        padding: 16px 10px;
        position: relative;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    footer .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-card {
        padding: 20px;
    }

    .block1 p {
        padding-right: 0 !important;
        font-size: 22px !important;
        line-height: 1.4 !important;
    }
}

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

    header h1 a img {
        width: 180px !important;
        max-width: 180px !important;
    }
}
