/* RESET */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f5f7fb;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* HEADER SCROLL */
.header.scrolled {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.logo {
    height: 50px;
    cursor: pointer;
}

/* NAV DESKTOP */
nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #1e1e1e;
    position: relative;
}

/* LINE HOVER */
nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #2196f3;
    bottom: -4px;
    left: 0;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
}

/* TITULOS */
h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

p {
    color: #555;
    line-height: 1.6;
}

/* BOTONES */
.btn {
    background: linear-gradient(45deg, #2196f3, #00c6ff);
    padding: 14px 28px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(33,150,243,0.3);
}

/* SECCIONES */
section {
    padding: 80px 20px;
    text-align: center;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

/* CARDS */
.card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card i {
    color: #2196f3;
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* ANIMACIONES */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* HERO ANIMATION */
.fade-hero {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeHero 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CONTACTO */
.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* FORMULARIO */
form {
    display: flex;
    flex-direction: column;
}

form input, form textarea {
    padding: 14px;
    margin: 10px 0;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
    outline: none;
}

form button {
    background: linear-gradient(45deg, #2196f3, #00c6ff);
    padding: 14px;
    border: none;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(33,150,243,0.3);
}

/* MAPA */
.map iframe {
    width: 100%;
    height: 320px;
    border-radius: 12px;
}

/* CONTACT INFO */
.contact-info {
    margin-top: 40px;
}

/* CLIENTES */
/* CONTENEDOR */
.client-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* ELEMENTOS */
.client-list span {
    background: #e3f2fd;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;

}

.client-list span:hover {
    background: #2196f3;
    color: white;
}

/* WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
}

.whatsapp img {
    width: 30px;
}

/* FOOTER */
.footer {
    background: #fff;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #eee;
}

/* MENU HAMBURGUESA */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1e1e1e;
    border-radius: 5px;
    transition: 0.3s;
}

/* ANIMACION ICONO */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px,-6px);
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 20px;
        background: white;
        flex-direction: column;
        width: 220px;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);

        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all 0.3s ease;
    }

    nav.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* HEADER BASE */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);

    transition: all 0.3s ease;
}

/* EFECTO AL HACER SCROLL */
.header.scrolled {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* HERO ANIMACIÓN PRO */
.fade1, .fade2, .fade3 {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeHero 0.8s ease forwards;
}

/* DELAYS */
.fade1 { animation-delay: 0.2s; }
.fade2 { animation-delay: 0.5s; }
.fade3 { animation-delay: 0.8s; }

/* KEYFRAME */
@keyframes fadeHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== AVISO DE PRIVACIDAD ===== */

.privacy {
    max-width: 900px;
    margin: auto;
    text-align: left;
    padding: 40px 20px;
}

.privacy h1 {
    text-align: center;
    margin-bottom: 30px;
}

.privacy-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* TITULOS INTERNOS */
.privacy-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #1e1e1e;
}

/* PÁRRAFOS */
.privacy-content p {
    margin-bottom: 15px;
}

/* LISTAS */
.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-content li {
    margin-bottom: 8px;
}

/* EFECTO SUTIL (OPCIONAL) */
.privacy-content {
    transition: all 0.3s ease;
}

.privacy-content:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* ===== FIX RESPONSIVE CONTACTO ===== */
@media (max-width: 768px) {

    .contact-main {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .map iframe {
        height: 300px;
    }

}

@media (max-width: 768px) {

    .client-list {
        justify-content: center;
    }

    .client-list span {
        font-size: 13px;
        padding: 8px 14px;
    }

}

/* RECAPTCHA CENTRADO */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.mensaje-exito {
  margin-top: 15px;
  padding: 12px;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  font-weight: 500;
}


.mensaje-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.contact-main {
  position: relative;
}

.mensaje-box {
  background: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 300px;
}

.loader {
  border: 4px solid #eee;
  border-top: 4px solid #00aaff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

#cerrar-mensaje {
  margin-top: 10px;
  padding: 6px 12px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}



/* ===== SOCIAL PRO FINAL ===== */

.social {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 14px;
}

/* BOTÓN */
.icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

/* SVG */
.icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: white;
    transition: 0.3s;
}

/* COLORES OFICIALES */
.icon.x { background: #000; }
.icon.yt { background: #FF0000; }
.icon.tt { background: #000; }
.icon.fb { background: #1877F2; }
.icon.ig { 
    background: linear-gradient(45deg,#feda75,#d62976,#962fbf);
}

/* EFECTO BRILLO */
.icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: 0.3s;
}

.icon:hover::before {
    opacity: 1;
}

/* HOVER GENERAL */
.icon:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* HOVER ICONO */
.icon:hover svg {
    transform: scale(1.2);
}