/* ================= RESET BÁSICO ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= ESTILOS GENERALES ================= */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #2c6eff;
    line-height: 1.6;
}

/* ================= HEADER ================= */
header {

    position: relative;
    background-color: #2c6eff;
    color: #ffffff;
    padding: 22px 40px;
    overflow: hidden;
}

/* Línea diagonal decorativa (sutil, corporativa) */
header::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255,255,255,0.08);
    transform: skewY(-3deg);
}

/* Contenedor */
.header-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= LOGO ================= */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    width: 46px;
    border-radius: 6px;
}

.logo h1 {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ================= NAVEGACIÓN ================= */
nav ul {
    list-style: none;
    display: flex;
    gap: 0px;
}

/* Links base */
nav a {
    text-decoration: none;
    color: #f1f1f1;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    position: relative;
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

/* Hover */
nav a:hover {
    background-color: rgba(255,255,255,0.15);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Activo */
nav a.active {
    background-color: rgba(255,255,255,0.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}



/* ================= HERO ================= */
.hero,
.servicios-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    overflow: hidden;
}

/* Imagen base */
.hero img,
.servicios-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

/* Overlay corporativo */
.hero::after,
.servicios-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(44,110,255,0.55),
        rgba(0,0,0,0.45)
    );
}

/* Detalle diagonal inferior */
.hero::before,
.servicios-hero::before {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: #ffffff;
    transform: skewY(-3deg);
    z-index: 2;
}

/* ================= BIENVENIDA ================= */
.bienvenida {
    font-family: 'Montserrat', sans-serif;
    position: relative;
    text-align: center;
    padding: 30px 20px 70px;
}

.bienvenida h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 50px;
    margin-bottom: 20px;
    color: #2c6eff;
}

.bienvenida p {
    font-family: 'Montserrat', sans-serif;
    max-width: 820px;
    margin: 0 auto;
    font-size: 18px;
    color: #333;
}

/* Línea decorativa */
.bienvenida h2::after {
    content: "";
    display: block;
    width: 30%;
    max-width: 700px;
    height: 4px;
    background-color:  #db6300;
    margin: 18px auto 0;
    border-radius: 2px;
}

/* ================= DESCRIPCIÓN SERVICIOS ================= */
.servicios-descripcion {
    max-width: 950px;
    margin: 70px auto;
    padding: 0 20px;
    text-align: center;
}

.servicios-descripcion h2 {
    font-size:45px;
    margin-bottom: 15px;
    color:#2c6eff;
}

.servicios-descripcion p {
    font-size: 18px;
    color: #444;
}

.servicios-descripcion h2::after {
    content: "";
    display: block;
    width: 30%;
    max-width: 700px;
    height: 4px;
    background-color: #db6300;
    margin: 18px auto 0;
    border-radius: 2px;
}

.servicios-division h2{
    font-size:35px;
    margin-bottom: 15px;
    color:#4B5563;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.servicios-division h2::after{
    content: "";
    display: block;
    width: 40%;
    max-width: 700px;
    height: 3px;
    background-color: #4B5563;
    margin-left:  1px ;
    border-radius: 2px;
    padding:0 20px;
}


/* ================= SECCIONES ================= */
.servicios-seccion {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.servicios-seccion h3 {
    font-size: 28px;
    margin-bottom: 35px;
    padding-left: 16px;
    border-left: 6px solid #db6300;
    color: #2c6eff;
}

/* ================= GRID ================= */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

/* ================= TARJETAS ================= */
.servicio-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    padding: 28px;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Marco dinámico */
.servicio-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(44,110,255,0.25);
    border-radius: 14px;
    pointer-events: none;
}

/* ================= IMÁGENES ================= */
.servicio-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
    position: relative;
}

/* Overlay diagonal en imagen */
.servicio-card img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44,110,255,0.25),
        transparent 60%
    );
}

/* ================= TEXTO ================= */
.servicio-card h4 {
    font-size: 21px;
    margin-bottom: 12px;
    color: #2c6eff;
}

.servicio-card p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.servicio-precio {
    font-weight: bold;
    color: #000;
}

/* ================= NOSOTROS ================= */
.nosotros .servicio-card {
    text-align: center;
}

.nosotros .servicio-card h4 {
    color: #2c6eff;
}

/* ================= FOOTER ================= */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 50px 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left p,
.footer-right p {
    margin-bottom: 10px;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    /* Header */
    .header-container {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        padding: 10px 16px;
    }

    /* Hero */
    .hero,
    .servicios-hero {
        height: 42vh;
    }

    /* Tipografía */
    .bienvenida h2,
    .servicios-descripcion h2 {
        font-size: 28px;
    }

    .bienvenida p,
    .servicios-descripcion p {
        font-size: 17px;
    }

    /* Servicios */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
      .contacto-grid {
        grid-template-columns: 1fr;
    }
    
}

/* ================= CONTACTO ================= */
.contacto {
    font-family: 'Montserrat', sans-serif;
    position: relative;
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
    color: #000;
}

/* Detalle diagonal superior */
.contacto::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: #ffffff;
    transform: skewY(-3deg);
    z-index: -1;
}

/* Título */
.contacto h2 {
    font-size: 34px;
    margin-bottom: 15px;
    color: #2c6eff;
}

/* Línea decorativa */
.contacto h2::after {
    content: "";
    display: block;
    width: 300px;
    height: 4px;
    background-color: #db6300;
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Texto */
.contacto p {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 45px;
    color: #444;
}


/* ================= FORMULARIO ================= */
.contacto-form {
    position: relative;
    background-color: #ffffff;
    padding: 45px 45px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    text-align: left;
    overflow: hidden;
}

/* Detalle diagonal decorativo */
.contacto-form::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -60px;
    width: 180px;
    height: 120px;
    background-color: rgba(44,110,255,0.08);
    transform: rotate(12deg);
    border-radius: 20px;
}

/* Agrupar inputs */
.form-group {
    display: flex;
    gap: 22px;
    margin-bottom: 22px;
}

/* Inputs y textarea */
.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #d0d6e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: #222;
    background-color: #fdfdfd;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Textarea */
.contacto-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Focus */
.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #2C6EFF;
    box-shadow: 0 0 0 3px rgba(44,110,255,0.15);
}

/* ================= BOTÓN ================= */
.contacto-form button {
    display: inline-block;
    margin-top: 10px;
    background-color: #2C6EFF;
    color: #ffffff;
    border: 2px solid transparent;
    padding: 14px 46px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: 
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

/* Hover → contorno más oscuro */
.contacto-form button:hover {
    background-color: #2458cc;
    border-color: #1f4fb3;
}

/* Active → más claro (click) */
.contacto-form button:active {
    background-color: #3f7bff;
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(44,110,255,0.3) inset;
}

/* ================= RESPONSIVE FORM ================= */
@media (max-width: 768px) {

    .form-group {
        flex-direction: column;
        gap: 16px;
    }

    .contacto-form {
        padding: 32px 22px;
        border-radius: 12px;
    }
    
     /* Inputs uno debajo del otro */
    .form-group {
        flex-direction: column;
        gap: 16px;
    }

    /* Menos padding para que respire */
    .contacto-form {
        padding: 28px 22px;
    }

    /* Apagar figura decorativa en móvil */
    .contacto-form::before {
        display: none;
    }

    /* Inputs un poco más compactos */
    .contacto-form input,
    .contacto-form textarea {
        font-size: 15px;
        padding: 13px 15px;
    }

    /* Botón a ancho completo */
    .contacto-form button {
        width: 100%;
        padding: 14px;
    }
}


/* ================= MENSAJE DE ÉXITO ================= */
.mensaje-exito {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(
        135deg,
        #f4f6fb 0%,
        #eef2ff 100%
    );
    padding: 40px 20px;
}

/* Card principal */
.mensaje-card {
    position: relative;
    background-color: #ffffff;
    padding: 55px 45px;
    border-radius: 18px;
    text-align: center;
    max-width: 520px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Detalle diagonal decorativo */
.mensaje-card::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -60px;
    width: 200px;
    height: 130px;
    background-color: rgba(44,110,255,0.08);
    transform: rotate(-12deg);
    border-radius: 24px;
}

/* Ícono */
.mensaje-card .icono {
    font-size: 64px;
    color: #2C6EFF;
    margin-bottom: 20px;
}

/* Título */
.mensaje-card h2 {
    font-size: 30px;
    margin-bottom: 15px;
    color: #2C6EFF;
}

/* Texto */
.mensaje-card p {
    font-size: 18px;
    color: #333;
    margin-bottom: 35px;
}

/* ================= BOTONES ================= */
.mensaje-card .btn {
    display: inline-block;
    padding: 13px 28px;
    margin: 6px;
    background-color: #2C6EFF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid transparent;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.15s ease;
}

/* Hover → contorno más oscuro */
.mensaje-card .btn:hover {
    background-color: #2458cc;
    border-color: #1f4fb3;
}

/* Active → más claro */
.mensaje-card .btn:active {
    background-color: #3f7bff;
    transform: translateY(1px);
}

/* Botón secundario */
.mensaje-card .btn-secundario {
    background-color: #ffffff;
    color: #2C6EFF;
    border: 2px solid #2C6EFF;
}

.mensaje-card .btn-secundario:hover {
    background-color: rgba(44,110,255,0.08);
}

/* ================= WRAPPER ================= */
.servicios-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* ================= BOTONES SCROLL ================= */
.scroll-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #7a8fb3; /* azul grisáceo */
    color: #7a8fb3;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.15s ease;
    z-index: 5;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    line-height: 1
}

/* Hover */
.scroll-btn:hover {
    transform: scale(1.05);
}

/* Activo (clic) → naranja fuerte */
.scroll-btn:active {
    background-color: #db6300;
    border-color: #db6300;
    color: #ffffff;
}

/* Posición */
.scroll-btn.left {
    margin-right: 10px;
}

.scroll-btn.right {
    margin-left: 10px;
}

/* ================= SCROLL ================= */
.servicios-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px 25px;
    scrollbar-width: none; /* Firefox */
}

.servicios-scroll::-webkit-scrollbar {
    display: none;
}

.servicios-scroll .servicio-card {
    flex: 0 0 280px;     /* ancho fijo */
    min-height: 420px;  /* 👈 altura uniforme */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



/* ================= CONTACTO GRID ================= */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    align-items: stretch;
}

/* ================= CARD UBICACIÓN ================= */
.ubicacion-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
}

/* Imagen mapa */
.ubicacion-img {
    position: relative;
    display: block;
    overflow: hidden;
}

.ubicacion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Overlay */
.ubicacion-img .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44,110,255,0.85),
        rgba(44,110,255,0.55)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover efecto */
.ubicacion-img:hover img {
    transform: scale(1.05);
}

.ubicacion-img:hover .overlay {
    opacity: 1;
}

/* Info */
.ubicacion-info {
    padding: 25px;
    text-align: center;
}

.ubicacion-info h3 {
    color: #2c6eff;
    font-size: 22px;
    margin-bottom: 10px;
}

.ubicacion-info p {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Botón maps */
.btn-maps {
    display: inline-block;
    padding: 12px 30px;
    background: #2c6eff;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-maps:hover {
    background: #1f54d8;
    transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    h1 {
        font-size: 24px;
    }

    .servicios-scroll-wrapper {
        gap: 5px;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .servicio-card {
        flex: 0 0 240px;
        min-height: 360px;
    }

    footer .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
   
    .ubicacion-card,
    .contacto-form {
        width: 100%;
    
}

}




