/* 
   EMMIA - Elegant Futuristic Web Development Landing Page
   Design System & Styling
*/

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

/* Variables */
:root {
    --bg-color: #0a1628;
    --bg-darker: #050b14;
    --primary-color: #FF1493; /* Fuchsia */
    --primary-glow: rgba(255, 20, 147, 0.35);
    --secondary-color: #00f2fe; /* Cyan */
    --secondary-glow: rgba(0, 242, 254, 0.35);
    --card-bg: rgba(15, 32, 58, 0.6);
    --border-color: rgba(255, 20, 147, 0.15);
    --border-color-hover: rgba(0, 242, 254, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--card-bg);
    border-radius: 4px;
    border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-color) 70%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.gradient-text-fuchsia {
    background: linear-gradient(135deg, #ff7beb, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Glowing background elements (decorative) */
.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.blob-1 {
    top: 10%;
    left: -100px;
    background-color: var(--primary-color);
}
.blob-2 {
    top: 50%;
    right: -100px;
    background-color: var(--secondary-color);
}
.blob-3 {
    bottom: 5%;
    left: 20%;
    background-color: var(--primary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(5, 11, 20, 0.9);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

header.scrolled .nav-container {
    padding: 12px 24px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 40px; /* 40px on PC */
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main) !important; /* White color */
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--text-main);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--text-main);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-smooth);
}

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

.btn-contact {
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--primary-color) 0%, #d0107a 100%);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow), 0 0 10px rgba(255, 20, 147, 0.4);
}

.btn-contact:active {
    transform: translateY(0);
}

.btn-contact-mobile {
    display: none !important; /* Hide on desktop */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Sections General */
section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

section:not(:last-of-type)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 1px; /* Ultra-thin futuristic filament */
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 20, 147, 0.05) 25%, 
        rgba(255, 20, 147, 0.55) 50%, 
        rgba(0, 242, 254, 0.55) 53%, 
        rgba(0, 242, 254, 0.05) 75%, 
        transparent 100%
    );
    filter: drop-shadow(0 0 1px rgba(255, 20, 147, 0.3));
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: block;
    text-shadow: 0 0 10px var(--primary-glow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 50px;
}

/* Hero Section (Carousel) */
#hero {
    padding: 0;
    max-width: 100%;
    height: 100vh;
    min-height: 650px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.25) saturate(1.2);
    z-index: -1;
}

.carousel-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 0 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.carousel-info {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.carousel-slide.active .carousel-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.carousel-slogan {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 16px;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.carousel-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 36px;
    max-width: 580px;
}

.carousel-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: scale(0.9) rotate(2deg);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.carousel-slide.active .carousel-visual {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition-delay: 0.5s;
}

/* Glassmorphism Graphic mockup */
.mockup-frame {
    width: 100%;
    max-width: 400px;
    height: 280px;
    background: rgba(15, 32, 58, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 
                inset 0 1px 0 rgba(255,255,255,0.1),
                0 0 30px rgba(0, 242, 254, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}
.mockup-dot:nth-child(1) { background-color: #ef4444; }
.mockup-dot:nth-child(2) { background-color: #eab308; }
.mockup-dot:nth-child(3) { background-color: #22c55e; }

.mockup-element {
    background: linear-gradient(90deg, rgba(255, 20, 147, 0.1), rgba(0, 242, 254, 0.1));
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 8px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    color: var(--secondary-color);
    font-size: 2.5rem;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.mockup-text {
    width: 60%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Secondary glowing ring behind graphic */
.glow-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 20, 147, 0.2);
    animation: rotateRing 30s linear infinite;
    z-index: -1;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Buttons in Hero */
.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.carousel-btn-prev { left: 24px; }
.carousel-btn-next { right: 24px; }

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 45px;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Scroll Reveal Base CSS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Directional reveal overrides */
.reveal.reveal-left {
    transform: translateX(-80px);
}
.reveal.reveal-left.active {
    transform: translateX(0);
}

.reveal.reveal-right {
    transform: translateX(80px);
}
.reveal.reveal-right.active {
    transform: translateX(0);
}

.reveal.reveal-fade {
    transform: scale(0.95);
}
.reveal.reveal-fade.active {
    transform: scale(1);
}

/* Delay modifiers for grids */
.delay-100 { transition-delay: 0.4s; }
.delay-200 { transition-delay: 1.8s; }
.delay-300 { transition-delay: 3.2s; }
.delay-400 { transition-delay: 4.6s; }
.delay-500 { transition-delay: 6.0s; }
.delay-600 { transition-delay: 7.4s; }

/* Nosotros (About Us) Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
}

.about-card:hover {
    border-color: var(--border-color-hover);
    transform: translateX(5px);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 254, 0.15);
}

.about-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 20, 147, 0.1);
    border: 1px solid rgba(255, 20, 147, 0.3);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.about-card:hover .about-icon {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.about-card-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.about-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Servicios Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 242, 254, 0.15), 
                0 0 20px rgba(255, 20, 147, 0.05);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 20, 147, 0.05);
    border: 1px solid rgba(255, 20, 147, 0.2);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-learn-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.service-learn-more svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-learn-more {
    color: var(--secondary-color);
}

.service-card:hover .service-learn-more svg {
    transform: translateX(4px);
    stroke: var(--secondary-color);
}

/* Portafolio Section */
.portfolio-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 0 15px var(--primary-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 22, 40, 0.95) 20%, rgba(10, 22, 40, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.portfolio-item:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 242, 254, 0.2);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tag {
    color: var(--secondary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.portfolio-item-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.portfolio-item-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.portfolio-item-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-glow);
}

/* Referencias Section styling */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 70px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 242, 254, 0.15);
}

.stat-num-wrapper {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--secondary-color) 75%, #09B3BA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.stat-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -15px rgba(0, 242, 254, 0.15), 
                0 0 20px rgba(255, 20, 147, 0.05);
}

.testimonial-quote-icon {
    color: var(--primary-color);
    opacity: 0.7;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.testimonial-card:hover .testimonial-quote-icon {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 8px var(--secondary-glow));
}

.testimonial-quote {
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 16px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: none;
    padding-top: 0;
}

.testimonial-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-main);
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(255, 20, 147, 0.2);
}

/* Contacto Section */
.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}

.contact-container::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 20, 147, 0.1);
    border: 1px solid rgba(255, 20, 147, 0.3);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}

.contact-method-text h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-method-text p {
    font-size: 1.05rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    background: rgba(5, 11, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    background: rgba(5, 11, 20, 0.8);
}

textarea.form-control {
    resize: none;
    min-height: 120px;
}

/* Success notification message */
.form-message {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-darker);
    padding: 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.3rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .carousel-content {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
        gap: 30px;
    }
    
    .carousel-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .carousel-visual {
        margin-top: 20px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
    
    .carousel-btn-prev { left: 12px; }
    .carousel-btn-next { right: 12px; }
    
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto; /* Push to the far right */
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(10, 22, 40, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 0;
        gap: 24px;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
        border-bottom: 0px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.open {
        height: calc(100vh - 80px);
        padding-top: 60px;
        border-bottom-width: 1px;
    }
    
    .nav-menu .btn-contact {
        margin-top: 10px;
    }
    
    .logo {
        font-size: 30px !important; /* 30px on mobile */
    }
    
    .nav-container > .btn-contact {
        display: none !important; /* Hide header button on mobile */
    }
    
    .nav-menu .btn-contact-mobile {
        display: inline-flex !important; /* Show inside hamburger menu list */
        margin-top: 15px;
    }
    
    header.scrolled .nav-menu {
        top: 60px;
    }
    
    .carousel-title {
        font-size: 1.85rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .carousel-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
        max-width: 100%;
    }
    
    .carousel-slogan {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .carousel-content {
        padding-top: 100px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 20px;
    }
    
    .carousel-visual {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .section-desc {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    section {
        padding: 60px 16px;
    }
    
    /* Stats mobile overrides */
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 40px;
    }
    
    .stat-card {
        padding: 16px 8px;
    }
    
    .stat-num-wrapper {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
    
    .stat-text {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    /* Portfolio mobile overrides */
    .portfolio-item {
        height: 200px;
    }
    
    .portfolio-item > div:first-child {
        font-size: 2.5rem !important;
    }
    
    .portfolio-overlay {
        padding: 20px;
    }
    
    .portfolio-item-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    
    /* About cards mobile overrides */
    .about-card {
        padding: 16px;
        gap: 14px;
    }
    
    .about-card-title {
        font-size: 1.05rem;
    }
    
    .about-card-desc {
        font-size: 0.9rem;
    }
    
    /* Services mobile overrides */
    .service-card {
        padding: 24px 20px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .service-desc {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }
    
    /* Testimonials mobile overrides */
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-quote {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }
    
    .testimonial-name {
        font-size: 0.9rem;
    }
    
    .testimonial-avatar-placeholder {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }}

/* Preloader / Splash Screen Styling */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-darker);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 4.5rem; /* Large centered EMMIA logo */
    font-weight: 800;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.preloader-slogan {
    font-family: var(--font-heading);
    font-size: 1.15rem; /* Smaller slogan */
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    animation: gentlePulse 2.2s ease-in-out infinite; /* Pulsing very gently */
}

@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.97);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
}

/* Color specific logo letters */
.logo-i {
    color: #09B3BA !important; /* Custom Teal/Cyan #09B3BA */
}

.logo-a {
    color: var(--primary-color) !important; /* Fuchsia #FF1493 */
}

/* Logo Reveal Animation */
.logo-reveal-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.logo-reveal-text {
    display: inline-block;
    white-space: nowrap;
    clip-path: inset(0 100% 0 0); /* starts fully hidden */
    animation: revealLogoText 2.4s cubic-bezier(0.25, 1, 0.5, 1) forwards; /* slower, smoother easing */
    animation-delay: 0.3s;
}

.preloader-logo .logo-dot {
    opacity: 0;
    transform: scale(0) translateX(-3.2em);
    animation: revealLogoDot 2.4s cubic-bezier(0.25, 1, 0.5, 1) forwards; /* synchronized with text reveal */
    animation-delay: 0.3s;
}

@keyframes revealLogoText {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0% 0 0); /* fully revealed */
    }
}

@keyframes revealLogoDot {
    0% {
        opacity: 0;
        transform: scale(0) translateX(-3.2em); /* starts scaled down on the left */
    }
    15% {
        opacity: 1;
        transform: scale(1.2) translateX(-3.2em); /* scales up in position */
    }
    30% {
        opacity: 1;
        transform: scale(1) translateX(-3.2em); /* starts moving */
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0); /* ends smoothly at its final position on the right */
    }
}

/* Floating Scroll to Top Button */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d0107a 100%);
    color: var(--text-main);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s, background 0.3s, box-shadow 0.3s;
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--primary-glow), 0 0 20px var(--secondary-glow);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.btn-scroll-top:active {
    transform: translateY(0);
}

/* Mobile preloader responsive overrides (defined at the end to guarantee precedence) */
@media (max-width: 768px) {
    .preloader-logo {
        font-size: 3.2rem !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }
    
    .preloader-slogan {
        font-size: 0.56rem !important;
        letter-spacing: 0.12em !important;
        text-indent: 0.12em !important;
        white-space: nowrap !important;
    }
}


