:root {
    --primary: #F84F00;
    --dark: #111111;
    --gray: #666666;
    --light: #f6f1eb;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.18);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.section {
    padding: 90px 0;
}

.section-title {
    max-width: 720px;
    margin-bottom: 45px;
}

.section-title span {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
}

.section-title h2 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin-top: 10px;
}

.section-title p {
    color: var(--gray);
    margin-top: 18px;
    font-size: 17px;
}


/* Preloader */
body.loading {
    overflow: hidden;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: scale(1);

    transition:
        opacity 0.9s ease,
        visibility 0.9s ease,
        transform 0.9s ease;
}

/* Efecto suave al desaparecer */
#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.04);
}

.preloader-content {
    text-align: center;
    color: var(--white);

    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        filter 0.7s ease;
}

/* Efecto del contenido al salir */
#preloader.hide .preloader-content {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
    filter: blur(5px);
}

/* Contenedor principal del loader */
.architecture-loader {
    width: 150px;
    height: 150px;
    margin: 0 auto 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fondo tipo plano arquitectónico */
.blueprint-grid {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    animation: gridMove 3s linear infinite;
}

/* Marco principal */
.building-frame {
    width: 92px;
    height: 92px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    animation: framePulse 1.8s ease-in-out infinite;
}

/* Líneas animadas del marco */
.building-frame span {
    position: absolute;
    background: var(--primary);
    box-shadow: 0 0 18px rgba(248, 79, 0, 0.65);
}

.building-frame span:nth-child(1) {
    top: -2px;
    left: -2px;
    width: 0;
    height: 2px;
    animation: drawTop 1.8s ease-in-out infinite;
}

.building-frame span:nth-child(2) {
    top: -2px;
    right: -2px;
    width: 2px;
    height: 0;
    animation: drawRight 1.8s ease-in-out infinite;
    animation-delay: 0.35s;
}

.building-frame span:nth-child(3) {
    bottom: -2px;
    right: -2px;
    width: 0;
    height: 2px;
    animation: drawBottom 1.8s ease-in-out infinite;
    animation-delay: 0.7s;
}

.building-frame span:nth-child(4) {
    bottom: -2px;
    left: -2px;
    width: 2px;
    height: 0;
    animation: drawLeft 1.8s ease-in-out infinite;
    animation-delay: 1.05s;
}

/* Contenedor del logo central */
.loader-lines {
    position: absolute;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo */
.loader-lines span {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 1.8s ease-in-out infinite;
}

.loader-lines img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(248, 79, 0, 0.45));
}

/* Texto principal */
.preloader-content h2 {
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.preloader-content h2::after {
    content: " & Construcciones";
    color: var(--primary);
}

/* Texto secundario */
.preloader-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Animaciones */

@keyframes gridMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 36px 36px;
    }
}

@keyframes framePulse {

    0%,
    100% {
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.18);
    }

    50% {
        transform: scale(1.04);
        border-color: rgba(248, 79, 0, 0.45);
    }
}

@keyframes drawTop {

    0%,
    100% {
        width: 0;
    }

    50% {
        width: 96px;
    }
}

@keyframes drawRight {

    0%,
    100% {
        height: 0;
    }

    50% {
        height: 96px;
    }
}

@keyframes drawBottom {

    0%,
    100% {
        width: 0;
    }

    50% {
        width: 96px;
    }
}

@keyframes drawLeft {

    0%,
    100% {
        height: 0;
    }

    50% {
        height: 96px;
    }
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.78;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Botón lateral WhatsApp */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 20px;

    padding: 10px;
    /* background: var(--dark); */
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;

    box-shadow: var(--shadow);
    overflow: hidden;
    isolation: isolate;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(2, 1, 0, 0.134), rgba(22, 1, 1, 0.15));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    width: 42px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%);
    opacity: 0.45;
}

.whatsapp-float:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(248, 79, 0, 0.28);
}

.whatsapp-float:hover::before {
    opacity: 1;
}

.whatsapp-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
    padding-left: 44px;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 0 0 rgba(248, 79, 0, 0.65);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-icon svg {
    width: 37px;
    height: 37px;
    fill: var(--white);
}

/* Pequeño detalle tipo plano arquitectónico */
.whatsapp-text::before {
    content: "📐";
    margin-right: 8px;
}

/* Animación de pulso */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(248, 79, 0, 0.6);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(248, 79, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(248, 79, 0, 0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .whatsapp-float {
        right: 18px;
        bottom: 24px;
        padding: 10px;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-float::after {
        display: none;
    }

    .whatsapp-icon {
        width: 54px;
        height: 54px;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s ease;
}

header.scrolled {
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.navbar {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
}

.logo {
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.logo img {
    width: 70px;
    height: auto;
    max-width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 16px;
    opacity: 0.9;
    transition: 0.3s;
}


.nav-links a:not(.active-menu):hover {
    color: var(--primary);
}

.active-menu {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.36);
    color: var(--dark);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s ease;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(248, 79, 0, 0.28);
    color: var(--white);
}


.icon-page {
    width: 25px;
    margin-right: 10px;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 40px;
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    font-weight: bold;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

/* displanet */
.displanet {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 82px;
    isolation: isolate;

    /* Imagen por defecto mientras carga la API */
    --home-bg-image: url("./images/diseplanet-home.png");
}

.displanet::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: var(--home-bg-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1);
    animation: displanetZoom 18s ease-in-out infinite alternate;
    z-index: -2;
}

/* Capa oscura encima de la imagen */
.displanet::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
    z-index: -1;
}

.displanet::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.317), rgba(0, 0, 0, 0.076));
    z-index: -1;
}

@keyframes displanetZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.12);
    }
}

.displanet-content {
    max-width: 760px;
}

.displanet-content span {
    display: inline-block;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.displanet-content h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1;
    margin-bottom: 24px;
}

.displanet-content p {
    font-size: 19px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 34px;
}

.displanet-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.displanet-stats {
    background-color: #111111;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.stat-card {
    padding: 50px 22px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(248, 79, 0, 0.55);
    box-shadow: 0 20px 45px rgba(248, 79, 0, 0.18);
}

.stat-card h3 {
    color: var(--primary);
    font-size: clamp(52px, 8vw, 100px);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 0 24px rgba(248, 79, 0, 0.28);
}

.stat-card p {
    margin: 5px 0 0;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.displanet-stats {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.displanet-stats:hover {
    box-shadow: 0 25px 60px rgba(248, 79, 0, 0.16);
}

/* Responsive */
@media (max-width: 768px) {
    .displanet-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 38px 20px;
    }

    .stat-card p {
        font-size: 17px;
    }
}



/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 28px;
    height: 650px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.experience-box {
    position: absolute;
    right: -25px;
    bottom: 35px;
    background: var(--dark);
    color: var(--white);
    padding: 28px;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.experience-box h3 {
    color: var(--primary);
    font-size: clamp(52px, 8vw, 100px);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 0 24px rgba(248, 79, 0, 0.28);
}

.about-content h2 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin-bottom: 22px;
}


.about-content span {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;

}

.about-content p {
    color: var(--gray);
    margin-bottom: 18px;
    font-size: 17px;
}

.feature-list {
    margin: 28px 0;
    display: grid;
    gap: 14px;
}

.feature-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
}

.check {
    width: 10px;
    height: 10px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* Services */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 34px;
    border-radius: 26px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
    min-height: 310px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 23px;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-card a {
    color: var(--primary);
    font-weight: bold;
}

.services-more {
    margin-top: 45px;
    text-align: center;
}


.service-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    border: 3px solid rgba(248, 79, 0, 0.55);
    background: rgba(248, 79, 0, 0.08);
    color: #F84F00;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;
    transition: 0.35s ease;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card:hover .service-icon {
    background: #F84F00;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(248, 79, 0, 0.28);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 22px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    min-height: 360px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.project-card.large {
    grid-row: span 2;
    min-height: 745px;
}

.project-card img {
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-info {
    position: absolute;
    inset: auto 20px 20px 20px;
    background: rgba(17, 17, 17, 0.8);
    color: var(--white);
    border-radius: 20px;
    padding: 22px;
    backdrop-filter: blur(12px);
}

.project-info span {
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h3 {
    margin-top: 6px;
    font-size: 22px;
}

/* Process */
.process {
    background: var(--dark);
    color: var(--white);
}

.process .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.process-card span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 22px;
}

.process-card h3 {
    margin-bottom: 12px;
}

.process-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

/* ================================
   Testimonials Carousel
================================ */

.testimonials {
    background: var(--white);
}

.testimonials-carousel {
    position: relative;
    margin-top: 10px;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 22px;
    scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;

    padding: 34px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    border: 1px solid #eeeeee;
    min-height: 330px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(248, 79, 0, 0.35);
    box-shadow: 0 22px 55px rgba(248, 79, 0, 0.14);
}

.quote-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(248, 79, 0, 0.08);
    color: #F84F00;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
    line-height: 1;
    font-weight: bold;
    margin-bottom: 18px;
}

.testimonial-card p {
    color: var(--gray);
    margin-bottom: 26px;
    font-style: italic;
    font-size: 16px;
}

.client {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.client-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--light);

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    color: var(--primary);
    border: 1px solid rgba(248, 79, 0, 0.25);
}

.client strong {
    display: block;
    color: var(--dark);
}

.client small {
    color: var(--gray);
}

/* Botones del carousel */
.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(248, 79, 0, 0.35);
    background: var(--dark);
    color: var(--white);

    font-size: 34px;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.3s ease;
    box-shadow: var(--shadow);
}

.testimonial-btn:hover {
    background: #F84F00;
    border-color: #F84F00;
    transform: translateY(-50%) scale(1.08);
}

.testimonial-prev {
    left: -22px;
}

.testimonial-next {
    right: -22px;
}

/* Responsive */
@media (max-width: 980px) {
    .testimonial-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 100%;
        min-height: auto;
    }

    .testimonial-prev {
        left: 8px;
    }

    .testimonial-next {
        right: 8px;
    }

    .testimonial-btn {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }
}

/* Contact */
.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 45px;
    align-items: start;
}

.contact-info {
    background: var(--dark);
    color: var(--white);
    border-radius: 28px;
    padding: 38px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 30px;
    margin-bottom: 16px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.88);
}

.contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    border: 1.5px solid rgba(248, 79, 0, 0.55);
    background: rgba(248, 79, 0, 0.08);
    color: #F84F00;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-item:hover .contact-icon {
    background: #F84F00;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(248, 79, 0, 0.28);
    transform: translateY(-2px);
}

.hidden-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

.toast-message.error .toast-icon {
  background: #dc2626;
}

.toast-message.error .toast-progress {
  background: #dc2626;
}

.form-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.contact-icon {
    transition: 0.3s ease;
}

.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid #dddddd;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(248, 79, 0, 0.12);
}

textarea {
    min-height: 105px;
    resize: vertical;
}


.form-btn {
    position: relative;
    gap: 10px;
}


/* Alerta lateral del formulario */
.toast-message {
    position: fixed;
    right: 10px;
    bottom: 30px;
    z-index: 99999;
    width: min(430px, calc(100% - 56px));
    padding: 18px 18px;
    border-radius: 18px;
    background: var(--dark);
    color: var(--white);
    border: 1px solid rgba(248, 79, 0, 0.45);
    border-left: 5px solid var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex !important;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(120%);
    transition:
        transform 0.55s ease,
        opacity 0.45s ease,
        visibility 0.45s ease;

    overflow: hidden;
}


.toast-message.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.toast-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 18px;
}

.toast-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.45;
    color: var(--dark);
}

.toast-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--dark);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: 0.3s ease;
}

.toast-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
}

.toast-message.show .toast-progress {
    animation: toastProgress 10s linear forwards;
}

@keyframes toastProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (max-width: 640px) {
    .toast-message {
        right: 16px;
        bottom: 95px;
        width: calc(100% - 32px);
    }
}



.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: none;
    animation: buttonSpin 0.8s linear infinite;
}

.form-btn.is-loading {
    opacity: 0.85;
    cursor: not-allowed;
    pointer-events: none;
}

.form-btn.is-loading .btn-loader {
    display: inline-block;
}

.form-btn.is-loading .btn-text {
    opacity: 0.9;
}

@keyframes buttonSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.form-message {
    display: none;
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 26px;
    }

    textarea {
        min-height: 120px;
    }
}

/* ================================
   Footer elegante
================================ */

.site-footer {
    position: relative;
    background: #090909;
    color: var(--white);
    overflow: hidden;
    padding-top: 70px;
}

/* Fondo tipo plano arquitectónico */
.footer-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -160px;
    width: 340px;
    height: 340px;
    background: rgba(248, 79, 0, 0.18);
    filter: blur(70px);
    border-radius: 50%;
}

.footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 42px;
    padding-bottom: 50px;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    display: inline-block;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 18px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 2px;
    background: var(--primary);
    border-radius: 20px;
}

.footer-column ul {
    list-style: none;
    display: grid;
    gap: 11px;
    padding: 0;
    margin: 0;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    transition: 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 6px;
}



.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.footer-contact-item a,
.footer-contact-item span {
    color: rgba(255, 255, 255, 0.68);
    transition: 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary);
}

.footer-contact-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 11px;
    border: 1px solid rgba(248, 79, 0, 0.45);
    background: rgba(248, 79, 0, 0.08);
    color: #F84F00;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.3s ease;
}

.footer-contact-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact-item:hover .footer-contact-icon {
    background: #F84F00;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(248, 79, 0, 0.25);
}


.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 13px;
    font-size: 15px;
    line-height: 1.5;
}

.footer-contact p span {
    color: var(--primary);
}

/* Redes sociales */
.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: 0.35s ease;
}

.footer-socials a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(248, 79, 0, 0.3);
}

/* Parte inferior */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
    background: rgba(0, 0, 0, 0.25);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding-top: 55px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 82px;
        right: -100%;
        width: min(330px, 90%);
        height: calc(100vh - 82px);
        flex-direction: column;
        align-items: flex-start;
        padding: 36px;
        background: rgba(17, 17, 17, 0.98);
        transition: 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .testimonials-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card.large {
        grid-column: span 2;
        min-height: 460px;
    }

    .experience-box {
        right: 20px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 70px 0;
    }

    .displanet-stats,
    .services-grid,
    .testimonials-grid,
    .process-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.large {
        grid-column: span 1;
        min-height: 420px;
    }

    .displanet-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-img img {
        height: 430px;
    }

    .experience-box {
        position: static;
        margin-top: 18px;
    }

    .contact-info,
    .contact-form {
        padding: 28px;
    }
}