:root {
    /* Logo Colors */
    --primary: #e30613; /* Vibrant Red */
    --secondary: #2e3192; /* Deep Blue */
    --tertiary: #f37021; /* Orange */
    --accent: #009444; /* Green */
    
    /* Premium Neutrals */
    --bg-main: #ffffff;
    --bg-offwhite: #f8f9fa;
    --text-main: #1d1d1f; /* Apple-style dark gray */
    --text-muted: #86868b;
    --border-light: rgba(0, 0, 0, 0.05);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Global Mesh Gradients (Background Blobs) */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.15;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 { width: 600px; height: 600px; background: var(--primary); top: -100px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: var(--tertiary); top: 40%; right: -50px; animation-delay: -5s; }
.blob-3 { width: 700px; height: 700px; background: var(--secondary); bottom: -200px; left: 20%; animation-delay: -10s; }
.blob-4 { width: 400px; height: 400px; background: var(--accent); top: 70%; right: 10%; animation-delay: -15s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.text-center { text-align: center; }
.mb-5 { margin-bottom: 4rem; }
.mt-4 { margin-top: 2rem; }
.mt-3 { margin-top: 1rem; }

.subtitle-text {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

.text-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    color: #fff;
    padding: 18px 45px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(227, 6, 19, 0.3);
}

.btn-primary-small {
    background: var(--text-main);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-small:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 0 var(--border-light);
}

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

.nav-logo {
    height: 95px; /* Logo más grande en el estado inicial */
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-logo {
    height: 70px; /* Se achica un poco al hacer scroll para no estorbar */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn-primary-small) {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: #fff; /* For hero overlay initially */
    position: relative;
}

.navbar.scrolled .nav-links a:not(.btn-primary-small) {
    color: var(--text-main);
}

.nav-links a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary-small):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
}
.navbar.scrolled .menu-toggle { color: var(--text-main); }

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../img/CCCV PORTADA.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Hero Enhancements */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    color: #fff;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--tertiary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(243, 112, 33, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(243, 112, 33, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(243, 112, 33, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(243, 112, 33, 0); }
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 18px 45px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--secondary);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 4px;
    animation: scroll 2s infinite ease;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* Project Enhancements */
.proyecto-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alt-tag { color: var(--secondary); }

.proyecto-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: gap 0.3s ease;
}

.proyecto-link:hover {
    gap: 15px;
}

/* Animations */
.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero .text-highlight {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    font-weight: 300;
}

/* Nosotros Section */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.nosotros-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

/* Proyectos Section */
.proyectos {
    background-color: var(--bg-offwhite);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.proyecto-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    transition: transform 0.4s ease;
    border: 1px solid var(--border-light);
}

.proyecto-card:hover {
    transform: translateY(-8px);
}

.proyecto-img {
    height: 240px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proyecto-img.alt-bg {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

.img-overlay i {
    font-size: 4rem;
    color: #fff;
    opacity: 0.9;
}

.proyecto-info {
    padding: 40px;
}

.proyecto-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.proyecto-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.taller-card {
    text-align: center;
    padding: 50px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
}

.taller-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    background: #fff;
}

.taller-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--bg-offwhite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.taller-card:hover .taller-icon-wrapper {
    background: var(--primary);
    color: #fff;
}

.taller-icon-wrapper i {
    font-size: 2.2rem;
}

.taller-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.taller-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Transparencia Section */
.transparencia {
    background: linear-gradient(to bottom, var(--bg-main), var(--bg-offwhite));
    border-top: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

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

.doc-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 5px; height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--tertiary));
    transition: all 0.4s ease;
    z-index: 0;
}

.doc-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.doc-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
    z-index: 1;
}

.doc-card span {
    z-index: 1;
    line-height: 1.4;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(227, 6, 19, 0.2);
}

.doc-card:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Contacto Section */
.contacto {
    background-color: var(--bg-offwhite);
    border-top: 1px solid var(--border-light);
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contacto-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contacto-info p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.info-item .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.info-item span {
    font-size: 1.15rem;
    font-weight: 500;
}

.contacto-form-container {
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-offwhite);
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
}

/* Footer */
.footer {
    background-color: var(--text-main);
    padding: 100px 0 30px;
    color: #fff;
}

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

.footer-logo {
    height: 110px; /* Logo más grande en el footer */
    margin-bottom: 25px;
    filter: brightness(0) invert(1); /* Makes logo white for clean look */
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    max-width: 400px;
    line-height: 1.8;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact i {
    color: #fff;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

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

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-in-right { opacity: 0; transform: translateX(40px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.scale-up { opacity: 0; transform: scale(0.95); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.visible { opacity: 1; transform: translate(0) scale(1); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .nosotros-grid, .footer-grid, .contacto-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .nosotros-text, .contacto-info { text-align: center; }
    .info-item { justify-content: center; }
    .hero h1 { font-size: 4rem; }
    .section-padding { padding: 80px 0; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        flex-direction: column; background-color: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 30px 0; gap: 25px;
        transform: translateY(-150%); opacity: 0; transition: all 0.4s ease; z-index: -1;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; }
    .nav-links a:not(.btn-primary-small) { color: var(--text-main) !important; font-size: 1.2rem; }
    .menu-toggle { display: block; color: var(--text-main) !important; }
    
    .hero h1 { font-size: 3rem; }
    .hero .subtitle { font-size: 1.2rem; margin-bottom: 30px; }
    .hero-actions { flex-direction: column; gap: 15px; width: 100%; max-width: 300px; margin: 10px auto 0; }
    .btn-primary, .btn-secondary { width: 100%; padding: 15px 30px; font-size: 1rem; }
    
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 2.2rem; }
    .nosotros-grid { gap: 30px; }
    .glass-card, .contacto-form-container { padding: 30px 20px; }
    .proyecto-img { height: 200px; }
    .footer-grid { gap: 30px; margin-bottom: 30px; }
}
    
/* Floating WhatsApp Button */
.float-whatsapp {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0.2), 0px 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.float-whatsapp i {
    font-size: 38px;
    z-index: 2;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background-color: #22c35e;
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0.3), 0px 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .float-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 30px;
        right: 30px;
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.2);
    }
    .float-whatsapp i {
        font-size: 32px;
    }
}
