/* ===========================
   BOTONES DEL FORMULARIO - BIEN ALINEADOS
   =========================== */

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

/* Botón Enviar Consulta */
.btn-submit {
    flex: 1;
    padding: 1.2rem 2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Botón WhatsApp */
.btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.2rem 2rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    background: #128C7E;
}

/* Icono de WhatsApp dentro del botón */
.whatsapp-icon-btn {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* Hace el icono blanco */
}

/* Responsive - Los botones se apilan en móvil */
@media (max-width: 768px) {
    .form-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-submit,
    .btn-whatsapp {
        width: 100%;
    }
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 480px) {
    .btn-submit,
    .btn-whatsapp {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .whatsapp-icon-btn {
        width: 24px;
        height: 24px;
    }
}
.nav-brand {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Ajuste responsive del logo */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }
}

/* ===========================
   MENÚ HAMBURGUESA
   =========================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Animación del botón hamburguesa a X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ===========================
   RESPONSIVE MENÚ
   =========================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.2rem;
    }
    
    .nav-menu a::after {
        display: none;
    }
}

/* Overlay para cerrar menú */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}


/* ===========================
   VARIABLES Y RESET
   =========================== */
:root {
    --primary: #FF6B35;
    --secondary: #004E89;
    --accent: #F7B801;
    --dark: #1A1A2E;
    --light: #EAEAEA;
    --text: #2D2D2D;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    letter-spacing: 2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

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

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: var(--gradient);
    opacity: 0.1;
    transform: rotate(-15deg);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-50px) rotate(-15deg); }
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #555;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.hero-visual {
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-block {
    background: var(--dark);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 12px;
    height: 12px;
    background: #FF5F56;
    border-radius: 50%;
    box-shadow: 20px 0 0 #FFBD2E, 40px 0 0 #27C93F;
}

.code-line {
    animation: typing 0.8s steps(20) forwards;
    animation-delay: calc(var(--i) * 0.5s);
    opacity: 0;
}

.code-line:nth-child(1) { --i: 1; }
.code-line:nth-child(2) { --i: 2; }
.code-line:nth-child(3) { --i: 3; }
.code-line:nth-child(4) { --i: 4; }

@keyframes typing {
    to { opacity: 1; }
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
    padding: 6rem 2rem;
    background: white;
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 2px;
    color: var(--secondary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    letter-spacing: 1px;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* ===========================
   PACKAGES SECTION
   =========================== */
.packages {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #FF6B35 0%, #004E89 100%);
    color: white;
}

.packages .section-title {
    color: white;
}

.packages .section-title::after {
    background: white;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.package-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: var(--text);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient);
}

.package-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.package-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.package-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent);
    color: var(--dark);
    padding: 0.5rem 3rem;
    font-weight: 700;
    transform: rotate(45deg);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.package-header h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    letter-spacing: 1px;
}

.package-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.package-features ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.package-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    color: #555;
    transition: all 0.3s ease;
}

.package-features li:hover {
    color: var(--primary);
    padding-left: 10px;
}

.btn-package {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    padding: 6rem 2rem;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-submit {
    padding: 1.2rem 2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 20px;
    color: white;
}

.contact-info h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact-info > p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.info-item strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    opacity: 0.9;
    margin: 0;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 2rem 4rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-visual {
        margin-top: 3rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .code-block {
        font-size: 1rem;
        padding: 2rem;
    }
}

/* Contador de visitantes en el footer */
.visitor-counter {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    color: white;
}

.visitor-counter span {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.3rem;
}