/* CSS Variables - Premium Emerald & Soft Neutral Palette */
:root {
    --primary-color: #8E44AD;      /* Violeta */
    --primary-hover: #E91E63;      /* Fucsia (Acento) */
    --primary-light: #F4ECF7;      /* Violeta muy claro */
    --secondary-accent: #76D714;   /* Verde Manzana */
    --bg-mint: #F9FFF0;            /* Fondo Verde Manzana ultrasutil */
    --bg-color: #f8fafc;           /* Slate 50 */
    --card-bg: #ffffff;
    --text-main: #2C3E50;          /* Slate/Navy */
    --text-body: #546E7A;          /* Slate 600 */
    --text-muted: #94a3b8;         /* Slate 400 */
    --wa-color: #25d366;
    --wa-hover: #128c7e;
    --font-main: 'Outfit', sans-serif;
}

/* Global Styles */
html, body {
    background-color: #ffffff;
    font-family: var(--font-main);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 76px;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6, .text-main {
    color: var(--text-main);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-mint {
    background-color: var(--bg-mint);
}

.bg-light {
    background-color: var(--bg-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.max-w-lg {
    max-width: 600px;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease-in-out;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-shrink {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section con Imagen de Fondo Premium */
.hero-section {
    position: relative;
    min-height: calc(100vh - 76px);
    background-image: url('../img/hero-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    overflow: hidden;
    padding: 3rem 0 6rem 0; /* Extra padding at bottom for the wave */
}

/* Capa semitransparente blanca para que el texto resalte siempre */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%);
    z-index: 0;
}

/* Shape Dividers / Waves */
.wave-container {
    position: absolute;
    bottom: -5px; /* Solapamiento de seguridad agresivo de 5px */
    left: -0.5%;
    width: 101%;
    line-height: 0;
    z-index: 10;
    overflow: visible !important;
}

.wave-shape {
    display: block;
    width: 100%;
    height: 80px;
    transform: scaleY(1.1);
    transform-origin: top; /* Escala hacia abajo para pisar la sección siguiente */
    shape-rendering: geometricPrecision;
    pointer-events: none;
}

@media (min-width: 900px) {
    .wave-shape { height: 120px; }
}

.wave-padding {
    padding-bottom: 100px !important;
}
@media (min-width: 900px) {
    .wave-padding { padding-bottom: 140px !important; }
}

.hero-img-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.floating-card-1 {
    position: absolute;
    bottom: -20px;
    left: 10px;
    right: 10px;
    margin: 0 auto;
    width: fit-content;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

@media (min-width: 768px) {
    .floating-card-1 {
        left: -30px;
        right: auto;
        margin: 0;
    }
}

.icon-box {
    width: 48px;
    height: 48px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in { animation: fadeIn 1s ease forwards; }
.animate-slide-up { opacity: 0; animation: slideUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; animation-delay: 0.2s; }

/* Sobre Mí */
.profile-about-img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1/1;
    object-fit: cover;
    z-index: 2;
    position: relative;
}

.profile-blob {
    position: relative;
    display: inline-block;
}

.profile-blob::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: 0;
    top: -10%;
    left: 10%;
    animation: blob-bounce 10s infinite alternate;
}

@keyframes blob-bounce {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 60% 60%; transform: translateY(10px) rotate(10deg); }
}

/* Services (Soft Mint background set in HTML, styles for cards here) */
.service-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(142, 68, 173, 0.15) !important;
    border-color: rgba(142, 68, 173, 0.2);
    z-index: 20;
}

/* Fix icon transition flash */
.service-card i {
    transition: color 0.3s ease;
}

/* Featured Card Marker (Visuals Only) */
.card-featured {
    border-color: var(--primary-color);
    z-index: 2; /* Slight baseline priority */
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    transition: all 0.3s ease;
}

/* Normal service card icon hover */
.service-card:not(.card-featured):hover .icon-circle {
    background-color: var(--primary-color) !important;
}

.service-card:not(.card-featured):hover .icon-circle i {
    color: white !important;
}

/* Featured service card icon hover */
.card-featured .icon-circle {
    background-color: var(--primary-color) !important;
}
.card-featured .icon-circle i {
    color: white !important;
}
.card-featured:hover .icon-circle {
    background-color: var(--primary-hover) !important;
    transform: scale(1.1);
}
.card-featured:hover .icon-circle i {
    color: white !important;
}

/* Accordion Premium Styling */
.accordion-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}
.accordion-item:hover {
    transform: translateX(5px);
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* CTA */
.cta-section {
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/0b/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}

.scale-hover {
    transition: transform 0.3s ease;
}

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

/* Footer */
.bg-footer {
    background-color: var(--text-main) !important;
}

.social-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.social-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Octógonos Positivos (US.04) */
.octogono-wrap {
    width: 140px;
    height: 140px;
    background-color: var(--text-main);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
.octogono-wrap:hover {
    transform: scale(1.05);
}
.octogono-inner {
    width: 132px;
    height: 132px;
    background-color: #ffffff;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.octogono-content {
    width: 126px;
    height: 126px;
    background-color: var(--text-main);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.2;
    padding: 10px;
}
