/*
Theme Name: Landing E-Card
Theme URI: https://unodiseno.cl/
Author: UNO DISEÑO
Author URI: https://unodiseno.cl/
Description: Microtema minimalista para landing pages editables con Gutenberg.
Version: 1.0
Text Domain: landing-e-card
*/

:root {
    --bg-color: #fbfbfd;
    --text-color: #1d1d1f;
    --muted-color: #6e6e73;
    --footer-color: #a1a1a6;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --border-radius: 18px;
    --container-width: 1100px;
    --section-space: 80px;
    --gallery-gap: 25px;
    --float-btn-size: 60px;
    --float-icon-size: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   HEADER + MENÚ
   ========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 86px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.custom-logo-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.logo-fallback {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-nav {
    margin-left: auto;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu li {
    margin: 0;
    padding: 0;
}

.desktop-menu a {
    font-size: 0.96rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease;
}

.desktop-menu a:hover {
    opacity: 0.68;
}

/* Botón móvil FUERA del header */
.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    position: fixed;
    top: 13px;
    right: 16px;
    z-index: 12000;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mobile-menu-toggle span {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 999px;
    transition: transform 0.24s ease, opacity 0.24s ease, top 0.24s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 16px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 23px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 30px;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
}

/* Panel móvil FUERA del header */
.mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 10, 14, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.mobile-menu-panel.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(78vw, 360px);
    height: 100vh;
    padding: 96px 26px 26px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.24s ease;
    z-index: 10100;
}

.mobile-menu-panel.is-open .mobile-menu-inner {
    transform: translateX(0);
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li + li {
    margin-top: 14px;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 1.02rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

body.menu-open {
    overflow: hidden;
}

/* Compensa header fixed */
.site-main {
    width: 100%;
    padding-top: 86px;
}

.content-wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 20px 0;
}

/* Gutenberg base */
.entry-content > * {
    margin-top: 0;
    margin-bottom: var(--section-space);
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content .alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Hero */
.entry-content .wp-block-group.is-style-hero,
.entry-content .hero-block {
    text-align: center;
}

.entry-content .wp-block-group.is-style-hero h1,
.entry-content .hero-block h1 {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 30px;
}

.entry-content .wp-block-group.is-style-hero p,
.entry-content .hero-block p {
    font-size: 1.1rem;
    color: var(--muted-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Tipografía base */
.entry-content p {
    color: var(--muted-color);
    font-size: 1.05rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-color);
    line-height: 1.2;
}

.entry-content h2 {
    font-size: 2.5rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 30px;
}

/* =========================
   GALERÍAS GUTENBERG
   ========================= */

.entry-content .wp-block-gallery {
    margin-bottom: 100px;
}

.entry-content .wp-block-gallery.has-nested-images > .wp-block-image,
.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.entry-content .wp-block-gallery.has-nested-images > .wp-block-image img,
.entry-content .wp-block-gallery.has-nested-images > figure.wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.entry-content .wp-block-gallery.has-nested-images:not(.galeria-cuadrada):not(.galeria-horizontal):not(.galeria-vertical) > .wp-block-image img,
.entry-content .wp-block-gallery.has-nested-images:not(.galeria-cuadrada):not(.galeria-horizontal):not(.galeria-vertical) > figure.wp-block-image img {
    aspect-ratio: 4 / 5;
}

.entry-content .wp-block-gallery.has-nested-images.galeria-cuadrada > .wp-block-image img,
.entry-content .wp-block-gallery.has-nested-images.galeria-cuadrada > figure.wp-block-image img {
    aspect-ratio: 1 / 1;
}

.entry-content .wp-block-gallery.has-nested-images.galeria-horizontal > .wp-block-image img,
.entry-content .wp-block-gallery.has-nested-images.galeria-horizontal > figure.wp-block-image img {
    aspect-ratio: 4 / 3;
}

.entry-content .wp-block-gallery.has-nested-images.galeria-vertical > .wp-block-image img,
.entry-content .wp-block-gallery.has-nested-images.galeria-vertical > figure.wp-block-image img {
    aspect-ratio: 3 / 4;
}

.entry-content .wp-block-image img {
    border-radius: var(--border-radius);
}

/* Texto adicional centrado */
.entry-content .is-style-centered-text,
.entry-content .text-center-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.entry-content .is-style-centered-text p,
.entry-content .text-center-block p {
    font-size: 1.15rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* Contacto */
.entry-content .is-style-contact-block,
.entry-content .contact-block {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .is-style-contact-block p,
.entry-content .contact-block p {
    font-size: 1.1rem;
    color: var(--muted-color);
    margin-bottom: 12px;
}

.entry-content .is-style-contact-block .wp-block-heading,
.entry-content .contact-block .wp-block-heading {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 30px;
}

.entry-content .contact-icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Botones */
.entry-content .wp-block-buttons {
    justify-content: center;
}

.entry-content .wp-block-button__link {
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 600;
}

/* Mapa */
.fullwidth-map {
    width: 100%;
    line-height: 0;
    margin-top: 0;
}

.fullwidth-map iframe {
    width: 100%;
    min-height: 450px;
    border: 0;
    display: block;
}

/* =========================
   SECCIONES FULL WIDTH
   ========================= */

.entry-content .seccion-franja {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 90px 20px;
    overflow-x: clip;
}

.entry-content .seccion-franja__inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.entry-content .seccion-franja--color {
    background: var(--wp--preset--color--background, #dcc6a6);
    color: var(--text-color);
}

.entry-content .seccion-franja--imagen {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    color: #fff;
}

.entry-content .seccion-franja--imagen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.38),
        rgba(0, 0, 0, 0.48)
    );
    z-index: 1;
}

.entry-content .seccion-franja--imagen .seccion-franja__inner {
    position: relative;
    z-index: 2;
}

.entry-content .seccion-franja--color h1,
.entry-content .seccion-franja--color h2,
.entry-content .seccion-franja--color h3,
.entry-content .seccion-franja--color h4,
.entry-content .seccion-franja--color h5,
.entry-content .seccion-franja--color h6,
.entry-content .seccion-franja--color p,
.entry-content .seccion-franja--color li,
.entry-content .seccion-franja--color strong,
.entry-content .seccion-franja--color span,
.entry-content .seccion-franja--imagen h1,
.entry-content .seccion-franja--imagen h2,
.entry-content .seccion-franja--imagen h3,
.entry-content .seccion-franja--imagen h4,
.entry-content .seccion-franja--imagen h5,
.entry-content .seccion-franja--imagen h6,
.entry-content .seccion-franja--imagen p,
.entry-content .seccion-franja--imagen li,
.entry-content .seccion-franja--imagen strong,
.entry-content .seccion-franja--imagen span {
    color: inherit;
}

.entry-content .seccion-franja h2 {
    text-align: center;
    margin-bottom: 30px;
}

.entry-content .seccion-franja p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content > .seccion-franja,
.entry-content > .wp-block-cover.seccion-franja {
    margin-bottom: 0 !important;
}

.entry-content > .wp-block-cover.seccion-franja + .seccion-franja,
.entry-content > .seccion-franja + .wp-block-cover.seccion-franja,
.entry-content > .seccion-franja + .seccion-franja,
.entry-content > .wp-block-cover.seccion-franja + .wp-block-cover.seccion-franja {
    margin-top: 0 !important;
}



/* Utilidades */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* Compensa header fixed al navegar por anclas */
.entry-content [id] {
    scroll-margin-top: 80px;
}

/* =========================
   BOTONES FLOTANTES + BACK TO TOP
   ========================= */

.floating-actions {
    position: fixed;
    right: 10px;
    bottom: 100px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.floating-action {
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 0;
    line-height: 1;
    font-size: 30px;
}

.floating-action:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

.floating-action i {
    font-size: 30px;
    line-height: 1;
    display: block;
}

.floating-action svg {
    width: 26px;
    height: 26px;
    display: block;
    flex-shrink: 0;
}

.floating-action--whatsapp {
    background-color: #25D366;
}

.floating-action--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.floating-action--top {
    background: rgba(29, 29, 31, 0.88);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
}

.floating-action--top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-action.is-disabled {
    pointer-events: none;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-inner {
        min-height: 74px;
        padding: 0 16px;
        padding-right: 78px;
    }

    .header-brand {
        display: flex;
        align-items: center;
    }

    .custom-logo {
        max-height: 60px;
    }

    .site-main {
        padding-top: 74px;
    }

    .entry-content .wp-block-group.is-style-hero h1,
    .entry-content .hero-block h1 {
        font-size: 3.2rem;
    }

    .floating-actions {
        right: 10px;
        bottom: 100px;
        gap: 10px;
    }

    .floating-action {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .floating-action i {
        font-size: 25px;
    }

    .floating-action svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-space: 60px;
        --gallery-gap: 18px;
    }

    .content-wrap {
        padding: 60px 18px 0;
    }

    .entry-content .wp-block-group.is-style-hero h1,
    .entry-content .hero-block h1 {
        font-size: 2.4rem;
        letter-spacing: 0.1em;
        margin-bottom: 20px;
    }

    .entry-content .wp-block-group.is-style-hero p,
    .entry-content .hero-block p,
    .entry-content p {
        font-size: 1rem;
    }

    .entry-content h2,
    .entry-content .is-style-contact-block .wp-block-heading,
    .entry-content .contact-block .wp-block-heading {
        font-size: 2rem;
    }

    .entry-content .seccion-franja {
        padding: 70px 18px;
    }

    .fullwidth-map iframe {
        min-height: 360px;
    }


    .floating-actions {
        right: 10px;
        bottom: 100px;
        gap: 10px;
    }

    .floating-action {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .floating-action i {
        font-size: 25px;
    }

    .floating-action svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .entry-content .wp-block-group.is-style-hero h1,
    .entry-content .hero-block h1 {
        font-size: 2rem;
    }

    .fullwidth-map iframe {
        min-height: 300px;
    }
}



.footer-contacto-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    text-align: center;
}

.footer-contacto-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 1.08rem;
    line-height: 1.5;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-contacto-item:hover {
    color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.footer-contacto-item i {
    font-size: 1.05rem;
    line-height: 1;
    color: #fff;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contacto-item span {
    display: inline-block;
}

.footer-contacto-ubicacion {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .footer-contacto-links {
        gap: 12px;
        margin-top: 24px;
    }

    .footer-contacto-item {
        font-size: 1rem;
    }

    .footer-contacto-ubicacion {
        font-size: 0.92rem;
    }
}


