:root {
    --color-primary: #1FA37A;
    --color-primary-dark: #15735A;
    --color-secondary: #D8CFB5;
    --color-dark: #000000;
    --color-metal: #9A9A9A;
    --ui-nav-bg-start: #0a2218;
    --ui-nav-bg-end: #1FA37A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= LOADER / PANTALLA DE CARGA ================= */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-logo {
    width: 150px;
    height: auto;
    animation: spinLogo 2s linear infinite;
    filter: drop-shadow(0 0 20px rgba(31, 163, 122, 0.6));
}

@keyframes spinLogo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 2px;
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: "Cargando";
    }
    40% {
        content: "Cargando.";
    }
    60% {
        content: "Cargando..";
    }
    80%, 100% {
        content: "Cargando...";
    }
}

/* ================= FIN LOADER ================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--color-dark);
    color: white;
    overflow-x: hidden;
}

/* HERO */

.hero-logo {
    width: 100%;
    max-width: 380px;   /* límite máximo en desktop */
    height: auto;
    margin-bottom: 25px;
    animation: float 4s ease-in-out infinite;
}
@media (max-width: 768px) {
    .hero-logo {
        max-width: 260px;
    }
}


@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video ocupa todo el hero */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

/* Capa oscura encima del video */
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* Contenido encima */
.hero-content {
    position: relative;
    color: white;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0.8;
}

.hero-buttons {
    margin-top: 30px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: url("images/icono.png") no-repeat center;
    background-size: contain;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    transition: 0.4s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: black;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: black;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.hero-tagline {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 20px;;
}


/* SECTIONS */

.section {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.6s ease;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 15px auto 0;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 60px;
    opacity: 0.7;
}



.section:nth-child(odd) {
    background: linear-gradient(to bottom, #111, #0d0d0d);
}

.section:nth-child(even) {
    background: linear-gradient(to bottom, #0d0d0d, #151515);
}

.section:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-primary),
        transparent
    );
    opacity: 0.6;
}

/* SERVICES */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    padding: 40px;
    border-radius: 20px;
    z-index: 10;

    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(31,163,122,0.25);

    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(31,163,122,0.15),
        transparent 70%
    );
    transition: 0.8s;
}


.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 
        0 10px 40px rgba(31,163,122,0.25),
        inset 0 0 20px rgba(31,163,122,0.08);
}

.service-card:hover::before {
    left: 100%;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/icono.png") no-repeat center;
    background-size: 80px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 0.05;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

.service-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(31,163,122,0.12);
    border: 1px solid rgba(31,163,122,0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.service-icon i {
    font-size: 2rem;
    color: var(--color-primary);
}

.location-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.location-info p i {
    color: var(--color-primary);
    font-size: 1.15rem;
    margin-top: 2px;
}

.location-info p span {
    flex: 1;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.service-card ul li {
    color: rgba(255,255,255,0.75);
}


.highlight-card {
    border: 1px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(31,163,122,0.2);
}


/* ================= CONTACTO MODERNO ================= */

.contact-section {
    min-height: calc(100vh - 80px);
    padding: 76px 8%;
    background: linear-gradient(135deg, #0a0a0a, #111);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    width: auto;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 42px;
    border: 1px solid rgba(31,163,122,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* TEXTO LATERAL */

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-info p {
    color: #bbb;
    line-height: 1.6;
}

/* FORM */

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 16px;
    align-content: start;
}

/* INPUT GROUP FLOATING LABEL */

.input-group {
    position: relative;
    margin-bottom: 0;
}

.input-half {
    grid-column: span 1;
}

.input-full {
    grid-column: 1 / -1;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 10px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 16px;
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group textarea {
    min-height: 112px;
    resize: vertical;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 10px;
    color: #888;
    pointer-events: none;
    transition: 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--color-primary);
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group select:focus + label,
.input-group select:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
    top: -10px;
    font-size: 12px;
    color: var(--color-primary);
}

/* BOTÓN */

.btn-submit {
    margin-top: 4px;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: var(--color-primary);
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31,163,122,0.4);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        row-gap: 14px;
    }

    .input-half,
    .input-full {
        grid-column: 1;
    }
}
/* ================= PARTICULAS ================= */

.particles-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen;
}

.particles-hidden {
    display: none !important;
}

.contact-section {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    padding: 76px 8%;
    background: linear-gradient(135deg, #0a0a0a, #111);
}

.contact-section::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: url("images/icono.png") no-repeat center;
    background-size: contain;
    opacity: 0.04;
    right: -100px;
    bottom: -100px;
    pointer-events: none;
}


.contact-container {
    position: relative;
    z-index: 2;
}

/* ================= ELECTRIC FOCUS ================= */

.input-group {
    position: relative;
    margin-bottom: 0;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 10px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 16px;
}

.input-group textarea {
    min-height: 112px;
}

.input-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--color-primary);
    transition: 0.4s ease;
}

.input-group input:focus ~ .line,
.input-group select:focus ~ .line,
.input-group textarea:focus ~ .line {
    width: 100%;
    box-shadow: 0 0 15px var(--color-primary);
}

/* Glow cuando escriben */

.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
    text-shadow: 0 0 8px rgba(31,163,122,0.8);
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 0;
    color: #cdd7d2;
    font-size: 0.86rem;
    line-height: 1.45;
}

.consent-row input[type="checkbox"] {
    margin-top: 3px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-error {
    min-height: 22px;
    margin: 2px 0 8px;
    color: #ff9c9c;
    font-size: 0.88rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.form-error.active {
    opacity: 1;
}

/* ================= MENSAJE ENVIADO ================= */

.form-success {
    margin-top: 20px;
    color: var(--color-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: 0.5s ease;
}

.form-success.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= FIN CONTACTO MODERNO ================= */

/* MAP */

iframe {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    border: none;
}

/* REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* WHATSAPP */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
    overflow: visible;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4)
    0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
}

.whatsapp-float:hover:before {
    opacity: 1;
    transform: scale(1.6);
}

/* icono WhatsApp */
.whatsapp-float i{
    position: relative;
    z-index: 2;
    transition: transform 0.4 ease, text shadow 0.4s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.3) rotate(10des);
    text-shadow: 0 0 15% #fff, 0 0 30px #25d366;
}

/* Hover general WhatsApp */

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* latido WhatsApp */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* tooltip WhatsApp */
.tooltip {
    position: absolute;
    right: 80px;
    bottom: 50%;
    transform: translateX(50%) translateX(20px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    transform: translateY(50%) translateX(0);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: translateY(50%) translateX(40px) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(50%) translateX(-5px) scale(1.05);
        opacity: 1;
    }
    80% {
        transform: translateY(50%) translateX(3px) scale(0.98);
    }
    80% {
        transform: translateY(50%) translateX(0) scale(1);
    }
}

/* flecha del tooltip WhatsApp */
.tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.85);
}

@media (max-width: 400px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 28px;
        bottom: 15px;
        right: 15px;
    }
    .tooltip{
        font-size: 12px;
        right: 70px;
    }
}

/* Ubicacion */

.location-container {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.location-info {
    flex: 1;
    min-width: 280px;
}

.location-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.location-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.map-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--color-primary);
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.location-map {
    flex: 1;
    min-width: 300px;
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border-radius: 12px;
}

/* ================= MASCOTA TRAVIESA ================= */

.floating-mascot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    opacity: 0.09;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.6s ease, filter 0.4s ease;
    will-change: transform;
}


/* Oculta en hero */
.floating-mascot.hidden {

    /* Efecto al hacer scroll */
    .floating-mascot.mascot-electric {
        filter: brightness(2.5) drop-shadow(0 0 8px rgba(31, 163, 122, 0.9));
        opacity: 0.22;
    }

    /* Efecto al estar en sección de servicios */
    .floating-mascot.mascot-bright {
        filter: brightness(1.8) drop-shadow(0 0 12px rgba(31, 163, 122, 0.6));
        opacity: 0.18;
    }
    opacity: 0;
}

@media (max-width: 640px) {
    .hero {
        height: auto;
        min-height: calc(100vh - 120px);
        padding: 46px 14px 58px;
    }

    .hero-logo {
        max-width: 200px;
        margin-bottom: 16px;
    }

    .hero-tagline {
        font-size: 1.5rem;
        margin-top: 12px;
    }

    .hero p {
        font-size: 0.92rem;
        margin-top: 12px;
        line-height: 1.5;
    }

    .section {
        min-height: auto;
        padding: 56px 14px;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 28px;
    }

    .section-subtitle {
        margin: -12px auto 26px;
        font-size: 0.93rem;
        line-height: 1.6;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .location-container {
        gap: 18px;
    }

    .location-info,
    .location-map {
        min-width: 0;
    }

    .location-map iframe,
    iframe {
        height: 300px;
        border-radius: 10px;
    }

    .contact-section {
        padding: 56px 14px;
    }

    .contact-container {
        padding: 26px 16px;
        border-radius: 16px;
        gap: 20px;
    }

    .contact-info h2 {
        font-size: 1.85rem;
        margin-bottom: 10px;
    }

    .contact-info p {
        font-size: 0.93rem;
    }

    .floating-mascot {
        display: none;
    }

    .whatsapp-float .tooltip {
        display: none;
    }
}

@media (max-width: 412px) {
    .hero {
        min-height: auto;
        padding: 38px 12px 48px;
    }

    .hero-logo {
        max-width: 176px;
    }

    .hero-tagline {
        font-size: 1.32rem;
    }

    .hero-description,
    .hero p {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .section {
        padding: 48px 12px;
    }

    .section-title {
        font-size: 1.48rem;
        margin-bottom: 22px;
    }

    .section-subtitle {
        font-size: 0.88rem;
        margin: -8px auto 20px;
    }

    .service-card {
        padding: 20px 14px;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card ul li,
    .location-info p {
        font-size: 0.9rem;
    }

    .location-map iframe,
    iframe {
        height: 250px;
    }

    .contact-container {
        padding: 22px 14px;
    }

    .contact-info h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 375px) {
    .hero-tagline {
        font-size: 1.22rem;
    }

    .section-title {
        font-size: 1.36rem;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.82rem;
    }
}

