/* ============================================
   VARIABLES Y RESET
   ============================================ */
:root {
    --yellow: #ffbd59;
    --red: #ff3131;
    --white: #fffef8;
    --black: #080517;
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Archivo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--yellow);
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: background-color 0.3s ease, transform 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.on-yellow {
    background-color: var(--red);
}

.custom-cursor.pulse {
    animation: cursorPulse 0.6s ease-out;
}

@keyframes cursorPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Ocultar cursor personalizado en móvil/tablet */
@media (max-width: 1024px) {
    body {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--red);
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('hero-background.gif'); /* Reemplaza con tu GIF */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(8, 5, 23, 0.6);
    z-index: 2;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1200px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 8rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
    color: var(--white);
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-accent {
    color: var(--red);
    text-shadow: 0 0 40px rgba(255, 49, 49, 0.5);
}

.title-line:nth-child(3) {
    animation-delay: 0.5s;
    color: var(--yellow);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

.btn {
    display: inline-block;
    padding: 1.25rem 3rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 3px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary::before {
    background-color: var(--yellow);
}

.btn-primary:hover {
    color: var(--black);
    border-color: var(--yellow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--yellow);
    border-color: var(--yellow);
}

.btn-secondary::before {
    background-color: var(--yellow);
}

.btn-secondary:hover {
    color: var(--black);
}

.scroll-down-btn {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.scroll-down-btn span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap; /* 👈 clave */
}


.scroll-arrow {
    width: 40px;
    height: 60px;
    border: 2px solid var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--yellow);
    overflow: hidden;
     position: absolute;
    bottom: -2rem; /* aumentá este valor si lo querés más abajo */
    left: 50%;
    transform: translateX(-50%);
     z-index: 2;
}

.scroll-arrow::before {
    content: '↓';
    position: absolute;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { 
        transform: translateY(-10px); 
        opacity: 0;
    }
    50% { 
        transform: translateY(0); 
        opacity: 1;
    }
    100% { 
        transform: translateY(10px); 
        opacity: 0;
    }
}

.scroll-down-btn:hover .scroll-arrow {
    background-color: var(--yellow);
}

.scroll-down-btn:hover .scroll-arrow::before {
    color: var(--black);
}

/* ============================================
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    border-left: 4px solid var(--yellow);
    padding-left: 1rem;
}

.section-header.centered .section-label {
    border-left: none;
    padding-left: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 0;
    background-color: var(--black);
    position: relative;
    overflow: hidden;
}

/* Título scrolling */
.services-title-wrapper {
    background-color: var(--black);
    border-top: 4px solid var(--yellow);
    border-bottom: 4px solid var(--yellow);
    padding: 2rem 0;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.services-title-scroll {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.services-title-scroll span {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--yellow);
    letter-spacing: 0.15em;
    display: inline-block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Servicios como filas completas (estilo Fenix) */
.services-list {
    width: 100%;
}

.service-row {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
}

.service-row:last-child {
    border-bottom: none;
}

/* Fondo con GIF */
.service-row-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease, transform 8s ease;
    transform: scale(1);
}

.service-row[data-service="marketing"] .service-row-background {
    background-image: url('marketing-bg.gif');
}

.service-row[data-service="web"] .service-row-background {
    background-image: url('web-bg.gif');
}

.service-row[data-service="video"] .service-row-background {
    background-image: url('video-bg.gif');
}

/* Overlay de color */
.service-row-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    transition: background-color 0.6s ease;
}

.service-row[data-service="marketing"] .service-row-overlay {
    background-color: var(--red);
}

.service-row[data-service="web"] .service-row-overlay {
    background-color: var(--yellow);
}

.service-row[data-service="video"] .service-row-overlay {
    background-color: var(--black);
}

/* Hover: revelar GIF */
.service-row:hover .service-row-background {
    opacity: 0.4;
    transform: scale(1.05);
}

.service-row:hover .service-row-overlay {
    background-color: rgba(8, 5, 23, 0.7);
}

/* Invertir colores de texto al hacer hover para legibilidad */
.service-row:hover .service-row-label {
    color: var(--yellow);
}

.service-row:hover .service-row-title {
    color: var(--white);
}

.service-row:hover .service-row-description {
    color: var(--white);
}

.service-row[data-service="web"]:hover .service-row-label {
    color: var(--yellow);
}

.service-row[data-service="web"]:hover .service-row-title {
    color: var(--white);
}

.service-row[data-service="web"]:hover .service-row-description {
    color: var(--white);
}

/* Contenido */
.service-row-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 4rem 2rem;
    transition: transform 0.4s ease;
}

.service-row:hover .service-row-content {
    transform: translateY(-10px);
}

.service-row-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.service-row[data-service="web"] .service-row-label {
    color: var(--red);
}

.service-row-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.service-row[data-service="web"] .service-row-title {
    color: var(--black);
}

.service-row-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--white);
    font-weight: 300;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.service-row[data-service="web"] .service-row-description {
    color: var(--black);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits {
    padding: 8rem 0;
    background-color: var(--white);
    color: var(--black);
    border-top: 4px solid var(--red);
    border-bottom: 4px solid var(--red);
}

.benefits .section-label {
    color: var(--red);
    border-left-color: var(--red);
}

.benefits .section-title {
    color: var(--black);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
}

.benefit-item h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: var(--black);
}

.benefit-item p {
    font-weight: 300;
    color: var(--black);
    font-size: 1rem;
}

/* ============================================
   SOCIAL PROOF SECTION
   ============================================ */
.social-proof {
    padding: 8rem 0;
    background-color: var(--black);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border: 3px solid var(--yellow);
    background-color: var(--black);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: var(--yellow);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--red);
    line-height: 1;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.stat-item:hover .stat-number {
    color: var(--black);
}

.stat-label {
    font-family: var(--font-display);
    font-size: clamp(0.7rem, 1.5vw, 0.875rem);
    letter-spacing: 0.05em;
    color: var(--white);
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    padding: 0 0.5rem;
}

.stat-item:hover .stat-label {
    color: var(--black);
}

.testimonial-section {
    margin-top: 6rem;
}

.testimonial-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--yellow);
    letter-spacing: 0.05em;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial {
    background-color: var(--black);
    border-left: 4px solid var(--red);
    padding: 2.5rem;
    position: relative;
}

.testimonial p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--white);
    font-weight: 300;
}

.testimonial cite {
    font-style: normal;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    padding: 8rem 0;
    background-color: var(--white);
    color: var(--black);
    border-top: 4px solid var(--yellow);
}

.process .section-label {
    color: var(--red);
    border-left-color: var(--red);
}

.process .section-title {
    color: var(--black);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--red);
    margin-bottom: 1rem;
    opacity: 0.3;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: var(--black);
}

.process-step p {
    font-weight: 300;
    color: var(--black);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 8rem 0;
    background-color: var(--black);
    position: relative;
    border-top: 4px solid var(--red);
    border-bottom: 4px solid var(--yellow);
}

.cta-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.cta-title span {
    display: block;
}

.cta-title span:nth-child(1) {
    color: var(--white);
}

.cta-accent {
    color: var(--red);
    text-shadow: 0 0 40px rgba(255, 49, 49, 0.5);
}

.cta-title span:nth-child(3) {
    color: var(--yellow);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--white);
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.25rem;
    background-color: var(--black);
    border: 2px solid var(--white);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: rgba(255, 189, 89, 0.05);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 0.1em;
}

.contact-form select {
    cursor: pointer;
    color: var(--white);
}

.contact-form select option {
    background-color: var(--white);
    color: var(--black);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--black);
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--yellow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.footer-brand p {
    color: var(--white);
    font-weight: 300;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    text-decoration: none;
    font-family: var(--font-display);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--yellow);
    color: var(--black);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-weight: 300;
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .service-row {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .service-row {
        min-height: 350px;
        padding: 3rem 1.5rem;
    }
    
    .service-row-content {
        padding: 3rem 1.5rem;
    }
    
    .service-row-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .benefits-grid,
    .stats-grid,
    .testimonials-grid,
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .section-label {
        border-left: none;
        padding-left: 0;
    }
    
    .services-title-scroll span {
        font-size: 2rem;
    }
}

/* ============================================
   ANIMATIONS Y EFECTOS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Selection styling */
::selection {
    background-color: var(--yellow);
    color: var(--black);
}

/* Smooth scrolling para navegación */
html {
    scroll-padding-top: 2rem;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    color: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 70px;
        height: 70px;
    }
    
    .whatsapp-float svg {
        width: 42px;
        height: 42px;
    }
}