@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #FAFCFF; 
    --navy-deep: #F1F5F9; 
    --navy-light: #E2E8F0; 
    --sky-blue: #00B4D8;
    --sky-hover: #0077B6;
    --purple-accent: #7209B7;
    --text-glass: #1E293B; 
    --text-muted: #64748B; 
    --white: #FFFFFF;
    --dark-text: #1E293B;
    
    /* Gradients */
    --blue-purple-grad: linear-gradient(135deg, var(--sky-blue) 0%, var(--purple-accent) 100%);
    --card-bg: #FFFFFF;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--dark-text);
    background-color: var(--bg-dark);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }

.text-gradient {
    background: var(--blue-purple-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.glass-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.1);
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-sm { padding: 10px 24px; font-size: 0.9rem; }

.btn-primary {
    background: var(--blue-purple-grad);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(114, 9, 183, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-text);
    border: 2px solid var(--sky-blue);
}

.btn-secondary:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--purple-accent);
}

/* Section Header */
.section-padding { padding: 8rem 0; }
.bg-darker { background-color: #040710; }

.section-tag {
    color: var(--sky-blue);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    letter-spacing: 2.5px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* Navbar */
.hamburger { display: none; }

.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 0.6rem 0;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.navbar.scrolled {
    padding: 0.4rem 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo-img {
    height: 58px;
    filter: none;
    transition: var(--transition);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.85;
    letter-spacing: 1.2px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--sky-blue);
    opacity: 1;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    margin-top: 2.5rem; /* Better visual center with top nav */
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    color: var(--dark-text);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-glass);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Pilares */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--blue-purple-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pilares-grid h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pilares-grid ul {
    list-style: none;
    margin-top: 1.5rem;
}

.pilares-grid ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-glass);
}

.pilares-grid ul li i {
    color: var(--sky-blue);
}

/* Sobre Mí */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.img-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.img-frame::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-dark));
}

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
    transition: var(--transition);
}

.img-frame:hover .img-fluid {
    transform: scale(1);
}

.sobre-mi-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.section-text {
    color: var(--text-glass);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sky-blue);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.servicios-grid i {
    font-size: 2rem;
    color: var(--sky-blue);
    margin-bottom: 1rem;
    display: block;
}

.servicios-grid h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.servicios-grid p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.servicio-card {
    text-decoration: none;
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.servicio-card h4 {
    color: var(--dark-text);
}

.read-more {
    color: var(--sky-blue);
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.servicio-card:hover .read-more {
    color: var(--purple-accent);
}

.servicio-card:hover .read-more i {
    transform: translateX(5px);
}

/* Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.contact-info h2 {
    font-size: 2.22rem;
    margin-bottom: 1rem;
}

.info-items {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--white);
    background: var(--blue-purple-grad);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
}

.info-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
}

.info-item p {
    font-weight: 600;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input, .contact-form textarea {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px;
    color: var(--dark-text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--sky-blue);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .pilares-grid, .grid-2, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 2.3rem; }
    
    .nav-links {
        position: fixed;
        top: 80px; /* Adjust with scroll heights balance */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
        font-size: 1.6rem;
        color: var(--dark-text);
        cursor: pointer;
        z-index: 1001;
    }
}

/* Floating Socials */
.floating-socials {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-purple-grad);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 28px rgba(0, 180, 216, 0.4);
}

@media (max-width: 768px) {
    .floating-socials {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--dark-text) 0%, #17253d 100%);
    color: #ffffff;
    padding: 5rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-col h4 {
    color: var(--sky-blue);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--sky-blue);
    padding-left: 5px;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-links a {
    color: #ffffff;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social-links a:hover {
    color: var(--sky-blue);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Pulse Wave Button Animation */
.btn-pulse {
    animation: wave-pulse 2s infinite;
}

@keyframes wave-pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 180, 216, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 180, 216, 0);
    }
    100% {
        box-shadow: 0 0 0 0px rgba(0, 180, 216, 0);
    }
}

/* Scroll Animations */
.animate-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Parallax Divider */
.parallax-divider {
    height: 60vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 160%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.1s ease-out; /* Buttery smooth */
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 85, 0.45);
    z-index: 2;
}

.parallax-divider .text-center {
    position: relative;
    z-index: 3;
}

.parallax-divider h2 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.4);
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 900px) {
    .parallax-divider h2 { font-size: 2.2rem; }
    .parallax-divider { height: 40vh; background-attachment: scroll; } /* Disable parallax on mobile for performance */
}
