/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --negro: #0a0a0a;
    --naranja: #ff6a00;
    --naranja-claro: #ff8c33;
    --blanco: #ffffff;
    --gris-oscuro: #111111;
    --gris-medio: #1e1e1e;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--negro);
    color: var(--blanco);
    scroll-behavior: smooth;
}

.highlight {
    color: var(--naranja);
}

/* ===== SPLASH SCREEN ===== */
#splash {
    position: fixed;
    inset: 0;
    background: var(--negro);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    flex-direction: column;
    gap: 24px;
}

.splash-half {
    position: absolute;
    width: 220px;
    height: 220px;
    overflow: hidden;
    top: 50%;
    transform: translateY(-50%);
}

/* Mitad izquierda: recorta la mitad derecha de la imagen */
.splash-half.left {
    clip-path: inset(0 50% 0 0);
    left: 50%;
    translate: -110px 0;
    animation: slide-from-left 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* Mitad derecha: recorta la mitad izquierda de la imagen */
.splash-half.right {
    clip-path: inset(0 0 0 50%);
    left: 50%;
    translate: -110px 0;
    animation: slide-from-right 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.splash-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    display: block;
}

@keyframes slide-from-left {
    from { transform: translateY(-50%) translateX(-300px); opacity: 0; }
    to   { transform: translateY(-50%) translateX(0);      opacity: 1; }
}

@keyframes slide-from-right {
    from { transform: translateY(-50%) translateX(300px);  opacity: 0; }
    to   { transform: translateY(-50%) translateX(0);      opacity: 1; }
}

.splash-brand {
    position: absolute;
    bottom: calc(50% - 160px);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blanco);
    letter-spacing: 2px;
    opacity: 0;
    animation: brand-appear 0.8s ease 2.2s both;
}

.splash-brand span {
    color: var(--naranja);
}

@keyframes brand-appear {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#splash.fade-out {
    animation: splash-out 0.6s ease forwards;
}

@keyframes splash-out {
    to { opacity: 0; transform: scale(1.04); }
}

/* ===== MAIN SITE ===== */
.hidden { display: none; }

#main-site.fade-in {
    animation: site-in 0.7s ease both;
}

@keyframes site-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 60px;
    background: rgba(10,10,10,0.95);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blanco);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--naranja);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: #aaa;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--naranja);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--blanco);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== MENÚ HAMBURGUESA ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 200;
}

.hamburger-btn span {
    width: 28px;
    height: 3px;
    background: var(--naranja);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== MENÚ MÓVIL ===== */
.mobile-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    z-index: 150;
    overflow-y: auto;
}

.mobile-menu.open {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid #2a2a2a;
}

.mobile-nav-links a {
    display: block;
    text-decoration: none;
    color: #aaa;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 18px 20px;
    transition: all 0.3s;
}

.mobile-nav-links a:hover {
    background: rgba(255, 106, 0, 0.1);
    color: var(--naranja);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: url('inicio.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

/* Overlay oscuro para legibilidad */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.55) 50%,
        rgba(0,0,0,0.80) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 32px;
    filter: drop-shadow(0 0 30px rgba(255,106,0,0.4));
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255,106,0,0.35)); }
    50%       { filter: drop-shadow(0 0 45px rgba(255,106,0,0.65)); }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--blanco);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-block;
    background: var(--naranja);
    color: var(--blanco);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 24px rgba(255,106,0,0.4);
}

.btn-hero:hover {
    background: var(--naranja-claro);
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(255,106,0,0.55);
}

/* ===== SERVICIOS ===== */
.servicios {
    padding: 90px 60px;
    background: #000;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 52px;
    letter-spacing: -0.5px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.servicio-card {
    background: var(--gris-medio);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.servicio-card:hover {
    transform: translateY(-8px);
    border-color: var(--naranja);
    box-shadow: 0 12px 40px rgba(255,106,0,0.15);
}

.servicio-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.servicio-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--naranja);
    margin-bottom: 10px;
}

.servicio-card p {
    font-size: 0.88rem;
    color: #999;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 24px;
}

.btn-card {
    display: inline-block;
    background: transparent;
    color: var(--naranja);
    border: 1px solid var(--naranja);
    padding: 9px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
}

.btn-card:hover {
    background: var(--naranja);
    color: var(--blanco);
}

/* ===== NOSOTROS ===== */
.nosotros {
    padding: 90px 60px;
    background: url('quienes somos .png.png') center center / cover no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nosotros::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.78);
    pointer-events: none;
}

.nosotros-content {
    position: relative;
    z-index: 1;
}

.nosotros-content {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.nosotros-lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blanco);
    line-height: 1.6;
    margin-bottom: 40px;
}

.nosotros-cards {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nosotros-card {
    background: rgba(255,106,0,0.08);
    border: 1px solid rgba(255,106,0,0.3);
    border-radius: 14px;
    padding: 24px 32px;
    min-width: 160px;
    text-align: center;
}

.nosotros-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--naranja);
    line-height: 1;
    margin-bottom: 8px;
}

.nosotros-card p {
    font-size: 0.82rem;
    color: #aaa;
    line-height: 1.4;
    margin: 0;
}

.nosotros-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: #aaa;
    margin-bottom: 18px;
}

.btn-nosotros {
    display: inline-block;
    margin-top: 12px;
    background: transparent;
    color: var(--naranja);
    border: 2px solid var(--naranja);
    padding: 13px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.btn-nosotros:hover {
    background: var(--naranja);
    color: var(--blanco);
    transform: translateY(-3px);
}

/* ===== CONTACTO ===== */
.contacto {
    padding: 90px 60px;
    background: var(--gris-oscuro);
    text-align: center;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.contacto-icono {
    font-size: 1.5rem;
    margin-top: 2px;
}

.contacto-item strong {
    display: block;
    color: var(--naranja);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contacto-item p {
    color: #999;
    font-size: 0.95rem;
}

.mapa-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contacto-form input,
.contacto-form textarea {
    padding: 13px 16px;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.93rem;
    background: var(--gris-medio);
    color: var(--blanco);
    transition: border-color 0.3s;
    outline: none;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: #555;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: var(--naranja);
}

.contacto-form textarea {
    resize: vertical;
}

.btn-submit {
    background: var(--naranja);
    color: var(--blanco);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(255,106,0,0.3);
}

.btn-submit:hover {
    background: var(--naranja-claro);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,106,0,0.45);
}

/* ===== REDES SOCIALES EN FORMULARIO ===== */
.social-links {
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    padding-top: 20px;
}

.social-text {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 2px solid #25d366;
}

.social-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.social-btn.instagram {
    background: rgba(193, 53, 132, 0.15);
    color: #c1358e;
    border: 2px solid #c1358e;
}

.social-btn.instagram:hover {
    background: linear-gradient(135deg, #c1358e 0%, #e4405f 100%);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(193, 53, 132, 0.4);
    border: 2px solid transparent;
}

/* ===== MENSAJES DE STATUS ===== */
.status-message {
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    min-height: 20px;
    margin-top: 12px;
    animation: slideIn 0.3s ease-out;
}

.status-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-message.loading {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #050505;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    padding: 32px 24px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer p {
    color: #555;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
        gap: 12px;
    }

    .nav-logo-img {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .servicios,
    .nosotros,
    .contacto {
        padding: 60px 20px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .splash-half {
        width: 160px;
        height: 160px;
    }

    .splash-img {
        width: 160px;
        height: 160px;
    }

    .splash-half.left,
    .splash-half.right {
        translate: -80px 0;
    }

    .mobile-menu {
        top: 56px;
        height: calc(100vh - 56px);
    }
}
