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

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;

}

nav .logo img {
    height: 70px;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin-right: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #1f1f1f;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #00ff9d;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #00ff9d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #1a1a1a;
    line-height: 1.6;
}

header {
    height: 100vh;
    background: url('https://assets.mixkit.co/videos/preview/mixkit-digital-data-6598-large.mp4') center center/cover no-repeat;
    position: relative;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    flex-direction: column;
    padding-top: 160px;
    padding-bottom: 120px;
    background: linear-gradient(180deg, #f1f1f1 0%, #e1e1e1 100%);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background: rgba(0, 0, 0, 0.75); /* fondo negro fuerte */
    z-index: 0;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* más sutil por encima */
    z-index: -1;
  }

  #main-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3.4rem;
    color: white;
    text-align: center;
    opacity: 0;
  }
  
  
  
  header p {
    font-size: 1.25rem;
    color: #f1f1f1;
    margin-bottom: 2rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    opacity: 0; /* para animar */
  }
  
  .timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
    text-align: center;
  }
  
  .timeline-step {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .timeline-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  }
  
  .timeline-step i {
    font-size: 2rem;
    color: #00ff9d;
    margin-bottom: 1rem;
  }
  
  .timeline-step h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .timeline-step p {
    font-size: 0.95rem;
    color: #555;
  }
  .timeline-step:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 255, 157, 0.15);
    transition: all 0.35s ease;
  }
    
header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(1.2);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* más sutil */
    z-index: -1;
}

header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* sombra elegante */
    background: linear-gradient(135deg, #ffffff, #eaeaea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
  }
  
#typed-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    min-height: 40px;
    opacity: 0;
}


form-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background-color: #fafafa;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

form input,
form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}


.submit-button {
    background-color: #1f1f1f;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #000;
}

.cta-button {
    position: relative;
    background-color: #00ff9d;
    color: black;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 600;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.5);
    animation: pulseGlow 2s infinite;
}


.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.4s ease;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    background-color: #00e691;
    transform: scale(1.05);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #00ff9d;
    color: #000;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}
  
.scroll-to-top:hover {
    background-color: #00e691;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 255, 157, 0.4);
}
  
.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
  
  

.scroll-down {
    margin-top: 2rem;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    color: #fff;
}
.hero-header {
    position: relative;
    width: 100%;
    height: 75vh; /* antes: 100vh */
    max-height: 750px; /* opcional para evitar que se extienda mucho */
    background-image: url('/celus.jpg'); /* asegurate que esta ruta esté bien */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 4rem 2rem; /* para que no quede tan apretado en mobile */
  }
  
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* oscurece la imagen */
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
  }
  
  .cta-button {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1rem;
    background-color: #ffffff;
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
  }
  
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}


section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: auto;
    opacity: 0;
    position: relative;
}

.skew-transition {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    transform: skewY(-3deg);
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.04); /* 🌟 sombra suave abajo */
}

/* section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    transform: skewY(-3deg);
    z-index: 10;
    opacity: 0;
    animation: fadeInSkew 1s ease forwards;
    }

    @keyframes fadeInSkew {
    to {
        opacity: 1;
  }
}*/

section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: auto;
    opacity: 0;
    position: relative;
    overflow: visible; /* 👈 AGREGAR ESTO */
}


.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #1a1a1a;
    text-shadow: 0 2px 3px rgba(0,0,0,0.03);
}
  

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service {
    border-left: 3px solid #1f1f1f;
    padding-left: 1rem;
    transition: all 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;

}


.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12), 0 0 12px rgba(0, 255, 157, 0.1);
    background: rgba(255, 255, 255, 0.3);
}

.service-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    font-weight: 400; /* 🔒 Fija el peso para que no cambie al hacer hover */
    margin-bottom: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    backface-visibility: hidden; /* 🔧 Evita bugs en algunos renderizados */
    -webkit-font-smoothing: antialiased; /* 🔧 Mejora la nitidez */
    -moz-osx-font-smoothing: grayscale;
  }

  
.service-card:hover h3 {
    color: #00c786;
    transform: translateY(-2px);
}

.service-card p {
    font-size: 0.95rem;
    color: #444;
}

.about {
    background-color: #f5f5f5;
}

.about::before {
    background-color: #f5f5f5;
}

.contact-cta {
    background-color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    color: #0f0f0f;
}

.contact-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-link-button {
    background-color: #00ff9d;
    color: #000;
    border: 2px solid #00ff9d;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

    .contact-link-button:hover {
    background-color: #00e691;
    color: #000;
    transform: scale(1.05);
}

.timeline-container {
    overflow-x: auto;
    padding: 2rem 1rem;
    width: 100%;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 700px;
    position: relative;
    padding: 2rem 0;
}

    .timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: #ddd;
    z-index: 0;
    transform: translateY(-50%);
}

.timeline-item {
    position: relative;
    text-align: center;
    width: 20%;
    z-index: 1;
}

.timeline-item p {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-item .dot {
    width: 20px;
    height: 20px;
    background-color: #00ff9d;
    border-radius: 50%;
    margin: auto;
    box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(0, 255, 157, 0.2);
    opacity: 0;
    transform: scale(0.5);
}

.timeline-container::-webkit-scrollbar {
    height: 6px;
}
.timeline-container::-webkit-scrollbar-thumb {
    background: #00ff9d;
    border-radius: 3px;
}



footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    color: #999;
    text-align: center;
    padding: 2rem 1rem 1rem;
    font-size: 0.875rem;
    margin-top: 4rem;
}

.social-icons {
    margin-bottom: 1rem;
}
.social-icons a[href*="instagram"]:hover {
    color: #e1306c; /* rosa Instagram */
  }
  
  .social-icons a[href*="linkedin"]:hover {
    color: #0077b5; /* azul LinkedIn */
  }
  
  .social-icons a[href*="wa.me"]:hover {
    color: #25D366; /* verde WhatsApp */
  }
  

.footer-brand {
font-size: 0.875rem;
color: #999;
margin-bottom: 1rem;
opacity: 1; /* MOSTRAR SIEMPRE */
transition: opacity 0.6s ease;
}   

.social-icons a {
margin: 0 12px;
color: #999;
font-size: 1.5rem;
transition: transform 0.3s ease, color 0.3s ease;
opacity: 1; /* MOSTRAR SIEMPRE */
}       

.social-icons a:hover {
    color: #fff;
    transform: scale(1.2) rotate(-2deg);
    text-shadow: 0 0 10px currentColor;
}

footer, .footer-brand, .social-icons a {
opacity: 1 !important;
visibility: visible !important;
}

.diagonal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background: linear-gradient(135deg, #ffffffd9, #f0fff6); /* mismo en todas */
    transform: skewY(-3deg);
    transform-origin: top left;
    z-index: 0;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.04);
}
  

.diagonal-bg-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background: linear-gradient(135deg, #ffffffd9, #f0fff6); /* Igual que la de servicios */
    transform: skewY(-3deg); /* Unificar el ángulo */
    transform-origin: top left;
    z-index: 0;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.04); /* Opcional, da profundidad */
}


.diagonal-section {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
    padding-top: 10rem;
}

.section-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: auto;
}
  

@media (max-width: 768px) {
nav {
flex-direction: column;
align-items: flex-start;
}
nav .logo img {
height: 60px;
}

nav ul {
flex-direction: column;
width: 100%;
gap: 1rem;
margin-top: 1rem;
}

header h1 {
font-size: 1.8rem;
padding: 0 1rem;
}

header p {
font-size: 1rem;
padding: 0 1rem;
}

.cta-button {
padding: 0.75rem 1.5rem;
font-size: 0.9rem;
margin-top: 1rem;
transition: background-color 0.3s ease, transform 0.3s ease;
}

.section-title {
font-size: 1.8rem;
}

.services {
grid-template-columns: 1fr;
}
}

.menu-toggle {
display: none;
font-size: 1.8rem;
cursor: pointer;
color: #00ff9d;
margin-left: auto;
}
.menu-toggle:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.contact-cta {
    padding: 5rem 2rem;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .cta-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
  }
  
  .cta-text {
    flex: 1 1 500px;
  }
  
  .cta-video {
    flex: 1 1 500px;
  }
  
  .cta-video video {
    width: 100%;
    max-height: 350px;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
  }
  

.reveal {
will-change: transform, opacity, filter;
transform-origin: center;
}

@media (max-width: 768px) {
    .cta-container {
      flex-direction: column;
    }
  }
  
@media (max-width: 768px) {
nav {
flex-direction: row;
flex-wrap: wrap;
align-items: center;
}

.menu-toggle {
display: block;
}

nav ul {
display: none;
flex-direction: column;
width: 100%;
margin-top: 1rem;
gap: 1rem;
animation: fadeIn 0.3s ease forwards;
}

nav ul.show {
display: flex;
}

nav ul li a {
padding: 0.5rem 1rem;
border-left: 3px solid transparent;
transition: border-left 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
border-left: 3px solid #00ff9d;
color: #00ff9d;
}

header h1 {
font-size: 2rem;
padding: 0 1rem;
}

header p {
font-size: 1rem;
padding: 0 1rem;
}

.cta-button {
background-color: #00ff9d;
color: #000;
border-radius: 30px;
}

.cta-button:hover {
background-color: #00e691;
transform: scale(1.03);
}

.section-title {
font-size: 1.8rem;
}

.services {
grid-template-columns: 1fr;
}
}

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.section-bg-deco {
position: absolute;
top: -50px;
left: 0;
width: 100%;
height: calc(100% + 100px);
background: linear-gradient(135deg, #00ff9d33, #1a1a1a11);
background-size: 400% 400%;
animation: gradientFlow 15s ease infinite;
z-index: 0;
pointer-events: none;
opacity: 0; /* <-- empieza invisible */
border-radius: 0 0 30px 30px;
}

.section-bg-dark::before {
content: "";
position: absolute;
top: -50px;
left: 0;
width: 100%;
height: calc(100% + 100px);
background: linear-gradient(135deg, #1a1a1a, #00ff9d33);
background-size: 400% 400%;
animation: gradientFlowDark 15s ease infinite;
z-index: 0;
pointer-events: none;
opacity: 0.12;
border-radius: 0 0 30px 30px;
}

@keyframes gradientFlowDark {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

@keyframes gradientFlowDark {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

@keyframes gradientFlow {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
0% {
box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
}
70% {
box-shadow: 0 0 0 16px rgba(0, 255, 157, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
}
}