/* Base Styles & Variables */
:root {
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-1: #ff0055;
    --accent-2: #ffb800;
    --accent-3: #00b4d8;
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography Utility */
.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.section-padding {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Button */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--accent-gradient);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 0, 85, 0.4);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 1000;
    transition: var(--transition);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px; /* Increased logo size */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-2);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomOut 20s infinite alternate linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,15,0.4), rgba(10,10,15,0.9));
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    color: #ffffff;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    color: #e5e7eb;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.6;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

/* About Section */
.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 800px;
}

/* Mission & Vision */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.glass-card h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.project-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px; /* Fixed height for uniformity */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,0,85, 0.2); /* Accent color overlay */
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Wave Separator */
.wave-separator {
    width: 100%;
    line-height: 0;
    margin-bottom: -5px; /* Removes gap */
}

/* Contact Section */
.contact {
    background: #f9fafb;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    align-items: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.info-icon {
    font-size: 1.5rem;
    background: var(--bg-card);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fdfdfd;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 4px rgba(255, 0, 85, 0.1);
}

/* Footer */
.footer {
    background: #111827; /* Dark footer looks elegant and solid */
    color: #ffffff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    /* Agregar un filtro si el logo se pierde en el fondo oscuro, 
       opcionalmente drop-shadow si el logo es claro */
}

.footer-brand p {
    color: #9ca3af;
    max-width: 400px;
    margin-bottom: 20px;
}

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

.social-links a {
    color: #ffffff;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a:hover {
    color: var(--accent-2);
    opacity: 1;
}

.footer-links-col h3, .footer-contact-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-col h3::after, .footer-contact-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gradient);
}

.footer-links-col ul li, .footer-contact-col ul li {
    margin-bottom: 12px;
}

.flex-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
}

.flex-list-item svg {
    stroke: var(--accent-1);
    flex-shrink: 0;
}

.footer-links-col ul li a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-links-col ul li a:hover {
    color: var(--accent-2);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.4);
    animation: none;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animations & Keyframes */
@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes scrollDown {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Scroll Reveal Classes (Handled by JS) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active, .reveal-left.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; gap: 20px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-form-wrapper { padding: 24px; }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 30px;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links-col h3::after, .footer-contact-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .flex-list-item {
        justify-content: center;
    }
    
    .section-padding { padding: 60px 0; }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .mobile-menu-btn { 
        display: block; 
        position: relative;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        gap: 30px;
    }
    
    .nav-links li a {
        font-size: 1.2rem;
        font-weight: 500;
    }
    
    .nav-links.active { right: 0; }
    
    /* Hamburger animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
