/*
Theme Name: Paloma Posadas Portfolio
Theme URI: https://palomaposadas.com
Author: Paloma Posadas
Author URI: https://palomaposadas.com
Description: Tema portfolio para Social Media Manager — diseño minimalista con paleta coral y crema.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paloma-posadas
*/

/* ─── CUSTOM PROPERTIES ─── */
:root {
    --coral: #f08570;
    --coral-light: #f0857018;
    --coral-mid: #f0857040;
    --cream: #fafbf2;
    --dark: #1a1a18;
    --dark-soft: #3a3a35;
    --muted: #8a8a82;
}

/* ─── BASE ─── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--cream);
    color: var(--dark);
    margin: 0;
    padding: 0;
    font-weight: 300;
    line-height: 1.625;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ─── NAV ─── */
nav.scrolled {
    background: rgba(250, 251, 242, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 1px 0 rgba(240, 133, 112, 0.15);
}

.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--coral);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* ─── HAMBURGER ─── */
.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--dark);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -4px);
}

/* ─── HERO BACKGROUND ─── */
.hero-circle {
    opacity: 0;
    animation: floatIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-circle:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -8%;
    background: radial-gradient(circle, var(--coral-mid), transparent 70%);
    animation-delay: 0.2s;
}

.hero-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: 5%;
    left: -5%;
    background: radial-gradient(circle, var(--coral-light), transparent 70%);
    animation-delay: 0.5s;
}

.hero-circle:nth-child(3) {
    width: 180px;
    height: 180px;
    top: 30%;
    left: 15%;
    background: radial-gradient(circle, rgba(240, 133, 112, 0.08), transparent 70%);
    animation-delay: 0.8s;
}

@keyframes floatIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ─── HERO CONTENT ─── */
.hero-content {
    opacity: 0;
    animation: revealUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-name {
    font-size: clamp(3rem, 8vw, 7rem);
}

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
    opacity: 0;
    animation: revealUp 1s ease 1.5s forwards;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ─── CTA BUTTON ─── */
.hero-cta {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta:hover {
    background: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26, 26, 24, 0.15);
}

.hero-cta:hover svg {
    transform: translateX(3px);
}

/* ─── SECTION TITLES ─── */
.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

/* ─── FADE ON SCROLL ─── */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ─── ABOUT IMAGE ─── */
.about-image-wrapper {
    background: linear-gradient(145deg, var(--coral-light), rgba(240, 133, 112, 0.08));
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--coral-mid);
    border-radius: 196px 196px 16px 16px;
}

/* ─── FLOATING BADGE ─── */
.floating-badge {
    box-shadow: 0 8px 30px rgba(26, 26, 24, 0.08);
}

/* ─── TIMELINE ─── */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--coral), var(--coral-light), transparent);
}

.timeline-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--coral-mid);
}

/* ─── WORK CARDS ─── */
.work-card {
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(240, 133, 112, 0.12);
}

.work-card:hover .gradient-bg {
    transform: scale(1.05);
}

.gradient-bg {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-slide-body a {
    transition: opacity 0.3s ease;
}

.modal-slide-body a:hover {
    opacity: 0.7;
}

/* Asegura que el texto no se amontone con los botones de navegación si los hay */
.modal-slide-body {
    padding-bottom: 3rem !important;
}

.card-1 .gradient-bg { background: linear-gradient(135deg, #f08570, #f0a89b); }
.card-2 .gradient-bg { background: linear-gradient(135deg, #1a1a18, #3a3a35); }
.card-3 .gradient-bg { background: linear-gradient(135deg, #f0a89b, #fafbf2); }

.card-1 .card-icon svg { color: var(--cream); }
.card-2 .card-icon svg { color: var(--coral); }
.card-3 .card-icon svg { color: var(--coral); }

/* ─── SERVICE ITEMS ─── */
.service-item {
    transition: all 0.4s ease;
}

.service-item:hover {
    border-color: var(--coral);
    background: white;
    box-shadow: 0 8px 30px rgba(240, 133, 112, 0.08);
}

/* ─── CONTACT LINKS ─── */
.contact-link {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-link:hover {
    border-color: var(--coral);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(240, 133, 112, 0.1);
}

.contact-link:hover .contact-icon {
    background: var(--coral);
}

.contact-link:hover .contact-icon svg {
    color: var(--cream);
}

/* ─── MOBILE NAV PANEL ─── */
@media (max-width: 768px) {
    .nav-links-mobile {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--cream);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
        z-index: 150;
    }

    .nav-links-mobile.open {
        right: 0;
    }
}

/* ── MODAL ── */
.modal-overlay {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.modal-overlay.is-open .modal-container {
    transform: translateY(0) scale(1);
}

.modal-slide {
    min-width: 100%;
    display: flex;
    flex-direction: row;
}

.modal-slide-image {
    width: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.modal-slide-placeholder {
    width: 50%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.modal-slide-body {
    flex: 1;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .modal-slide {
        flex-direction: column;
    }

    .modal-slide-image,
    .modal-slide-placeholder {
        width: 100%;
    }
}

.slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(240, 133, 112, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-dot.active {
    background: #f08570;
    width: 22px;
    border-radius: 4px;
}

body.modal-open {
    overflow: hidden;
}

/* ─── UTILIDADES TAILWIND-LIKE ─── */
.font-display { font-family: 'Cormorant Garamond', serif; }
.font-body { font-family: 'Outfit', sans-serif; }
.text-coral { color: var(--coral); }
.text-dark { color: var(--dark); }
.text-dark-soft { color: var(--dark-soft); }
.text-muted { color: var(--muted); }
.text-cream { color: var(--cream); }
.bg-coral { background-color: var(--coral); }
.bg-coral-light { background-color: var(--coral-light); }
.bg-cream { background-color: var(--cream); }
.bg-dark { background-color: var(--dark); }
.border-coral { border-color: var(--coral); }