:root {
    --verde: #22c55e;
    --verde-suave: rgba(34, 197, 94, 0.06);
    --verde-suave-2: rgba(34, 197, 94, 0.03);
}
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #eef2f7; /* 👈 fondo general claro */
    color: #0f172a;
}

/* HERO */
/* HERO MODERNO */
.hero {
    padding: 100px 20px 60px;
    background: #0f172a; /* oscuro elegante */
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(34,197,94,0.08);
    border-radius: 50%;
    top: -250px;
    right: -200px;
    filter: blur(80px);
}

/* CONTENIDO */
.hero-content {
    max-width: 1100px;
    margin: auto;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease;
}

body.loaded .hero-content {
    opacity: 1;
    transform: translateY(0);
}
/* LOGO ANCHO */

/* TEXTO */
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero .subtitle {
    opacity: 0.8;
    margin-bottom: 20px;
}

#servicios .subtitle {
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.7;
}
#servicios {
    background: linear-gradient(
        to bottom,
        white,
        var(--verde-suave)
    );
}

/* BOTONES */
.cta button {
    margin: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.cta button:first-child {
    background: #22c55e;
    color: white;
}

.cta .sec {
    background: white;
    color: #0f172a;
}

/* CONTENEDOR */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 80px 20px;
    text-align: center;
}

/* SECCIONES */
section {
    background: linear-gradient(
        to bottom,
        white,
        var(--verde-suave)
    );
    margin-bottom: 20px;
    border-radius: 15px;
    padding: 0px 0px 20px 0px;
}

/* TITULOS */
h2 {
    margin-bottom: 30px;
}

.grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CARD NIVEL PRO */
.card {
    background: white;
    padding: 30px 25px;
    border-radius: 18px;
    width: 280px;
    text-align: left;
    transition: all 0.35s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* EFECTO LUZ (clave) */
.card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(34,197,94,0.15), transparent 60%);
    opacity: 0;
    transition: 0.4s;
}

/* HOVER PRO */
.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border: 1px solid #22c55e;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #475569;
}

/* CHECKS */
.card span {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #16a34a;
}


/* SECCIONES OSCURAS */
.dark {
    background: #0f172a;
    color: white;
}

/* ===================== */
/* SECCIÓN CONFIANZA PRO */
/* ===================== */

.confianza {
    background: #0f172a;
    color: white;
    padding: 80px 20px;
    border-radius: 15px;
}

/* SUBTITULO SOLO PARA ESTA SECCIÓN */
.confianza .subtitle {
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

/* GRID */
.confianza-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ITEM */
.confianza-item {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 15px;
    width: 260px;
    transition: 0.3s;
    backdrop-filter: blur(8px);
    text-align: left;
    position: relative;
}

/* LÍNEA VERDE PRO */
.confianza-item::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #22c55e;
    margin-bottom: 10px;
}

/* TITULO */
.confianza-item h3 {
    margin-bottom: 10px;
}

/* TEXTO */
.confianza-item p {
    font-size: 14px;
    opacity: 0.85;
}

/* HOVER */
.confianza-item:hover {
    transform: translateY(-8px);
    background: rgba(34,197,94,0.15);
}

/* TESTIMONIOS */
.testimonios {
     background: linear-gradient(
        to bottom,
        white,
        var(--verde-suave-2)
    );
    padding: 80px 20px;
    border-radius: 15px;
}

/* GRID */
.testimonios-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CARD */
.testimonio {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-align: left;
    position: relative;
}

/* COMILLAS DECORATIVAS */
.testimonio::before {
    content: "“";
    font-size: 40px;
    position: absolute;
    top: 10px;
    left: 15px;
    color: #22c55e;
}

/* TEXTO */
.testimonio p {
    font-size: 14px;
    margin: 20px 0;
    color: #334155;
}

/* NOMBRE */
.testimonio h4 {
    margin-top: 10px;
}

/* NEGOCIO */
.testimonio span {
    font-size: 12px;
    color: #64748b;
}

/* HOVER */
.testimonio:hover {
    transform: translateY(-6px);
}

/* VIDEOS */
/* PORTAFOLIO */
.portafolio {
    background: #0f172a;
    color:white;
    padding: 80px 20px;
    border-radius: 15px;
}

/* GRID */
.portafolio-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================== */
/* SLIDER PORTAFOLIO */
/* ===================== */

.slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.slider:hover .slide-track {
    animation-play-state: paused;
}

.slide-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scroll 35s linear infinite;
}

.slide {
    width: 220px;
    flex-shrink: 0;
    text-align: center;
}

/* MOCKUP CELULAR */
.slide img {
    width: 100%;
    border-radius: 30px;
    border: 8px solid #111827;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    transition: 0.3s;
}

/* HOVER */
.slide:hover img {
    transform: translateY(-10px) scale(1.03);
}

/* TEXTO */
.slide h4 {
    margin-top: 15px;
    color: white;
    font-size: 14px;
}

/* ANIMACIÓN */
@keyframes scroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-260px * 4));
    }
}


/* HOVER */
.proyecto:hover video {
    transform: scale(1.04);
}

/* TITULO */
.proyecto h4 {
    margin-top: 12px;
    font-size: 14px;
    color: white;
}
.proyecto video {
    aspect-ratio: 9/16;
    object-fit: cover;
}

/* SOBRE MI */
.sobre-mi {
     background: linear-gradient(
        to bottom,
        white,
        var(--verde-suave)
    );
    color: #0f172a;
    padding: 80px 20px;
    border-radius: 15px;
}

/* GRID */
.sobre-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: nowrap;
    justify-content: center;
}

/* IMAGEN */
.sobre-img img {
    width: 260px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* INFO */
.sobre-info {
    background: #0f172a; /* 👈 azul oscuro */
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* TITULOS */
.sobre-info h3 {
    margin-bottom: 10px;
    color: #22c55e;
}

/* TEXTO */
.sobre-info p {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    text-align: justify;
}

/* STATS */
.stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.stats h4 {
    color: #22c55e;
    font-size: 20px;
}

.stats span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}


/* FOOTER */
footer {
    background: #020617;
    color: white;
    padding: 20px;
    text-align: center;
}
/* AGENDA */
.agenda {
    background: linear-gradient(
        to bottom,
        white,
        var(--verde-suave)
    );
    color: #0f172a;
    padding: 80px 20px;
    border-radius: 15px;
}

/* GRID */
.agenda-grid {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* TEXTO */
.agenda-info {
    max-width: 400px;
    text-align: left;
}

.agenda-info p {
    margin: 15px 0;
    opacity: 0.85;
}

/* LISTA */
.agenda-info ul {
    margin-top: 15px;
}

.agenda-info li {
    margin-bottom: 8px;
    color: #22c55e;
}

/* FORM */
.agenda form {
    background: #0f172a; /* 👈 azul oscuro */
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    max-width: 420px;
    width: 100%;
}

/* INPUTS */
input, textarea {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    color: #0f172a;
    padding: 12px;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
    width: 100%;
    margin-bottom: 15px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    border: 1px solid #22c55e;
    background: white;
}

/* BOTÓN */
form button {
    background: #22c55e;
    color: white;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 15px;
}

/* HOVER */
form button:hover {
    transform: scale(1.05);
    background: #16a34a;
}

/* CLICK */
form button:active {
    transform: scale(0.97);
}

.redes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}
.redes img {
    width: 50px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 10PX;
}

.redes img:hover {
    transform: translateY(-5px);
}
/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
    animation:latidoWhatsapp 2s infinite, glowWhatsapp 2s infinite;
}

/* LATIDO WHATSAPP */
.whatsapp-float {
    animation: latidoWhatsapp 2s infinite;
}

@keyframes latidoWhatsapp {

    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.08);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}


.whatsapp-float:hover {
    background: #16a34a;
    box-shadow: 0 8px 25px rgba(34,197,94,0.5);
}


.logo-full {
    width: 100%;
    max-width: 900px;
    animation: entrada 1s ease-out, latido 3s ease-in-out infinite 1s;
}

@keyframes entrada {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.hero h1 {
    animation: fadeUp 1s ease;
}

.subtitle {
    animation: fadeUp 1.3s ease;
}

.cta {
    animation: fadeUp 1.6s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {

    .hero h1 {
        font-size: 1.6rem;
    }

    .logo-full {
        max-width: 95%;
    }

    .agenda-grid {
        flex-direction: column;
        gap: 30px;
    }

    .sobre-grid {
        flex-direction: column;
        text-align: center;
    }

    .stats {
        justify-content: center;
    }
}
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.mensaje {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #0f172a;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    z-index: 2000;
    font-size: 14px;
}

.mensaje.show {
    opacity: 1;
    transform: translateY(0);
}

.mensaje.ok {
    background: #16a34a;
}

.mensaje.error {
    background: #dc2626;
}
button {
    transition: 0.2s ease;
}
/* ===================== */
/* FOOTER PRO */
/* ===================== */

.footer {
    background: #020617;
    color: white;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand h2 {
    color: #22c55e;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-links,
.footer-contacto,
.footer-redes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer h4 {
    margin-bottom: 10px;
    color: white;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #22c55e;
}

.footer-contacto p {
    color: rgba(255,255,255,0.7);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 45px;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}

.social-icons img:hover {
    transform: translateY(-5px) scale(1.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

}
@keyframes glowWhatsapp {

    0% {
        box-shadow: 0 0 0 rgba(34,197,94,0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(34,197,94,0.7);
    }

    100% {
        box-shadow: 0 0 0 rgba(34,197,94,0.4);
    }
}