/* ===== Variables CSS ===== */
:root {
    --purple-dark: #4a1c6b;
    --purple-main: #6b2d8b;
    --purple-light: #8b4db3;
    --orange-main: #ff6b35;
    --orange-light: #ff8c5a;
    --orange-dark: #e55a25;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --black: #1a1a1a;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #e0e0e0;
}

/* ===== Reset y Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

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

/* ===== Header ===== */
.header {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-main) 100%);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 1.8rem;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-dark) 50%, var(--orange-dark) 100%);
    padding: 120px 20px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 48%, var(--orange-main) 48%, var(--orange-main) 52%, transparent 52%),
        linear-gradient(90deg, transparent 23%, var(--white) 23%, var(--white) 27%, transparent 27%),
        linear-gradient(90deg, transparent 73%, var(--white) 73%, var(--white) 77%, transparent 77%);
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 60%;
    opacity: 0.3;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 100%);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--purple-dark);
}

.btn-secondary:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.btn-submit {
    background: var(--orange-main);
    color: var(--white);
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    background: var(--orange-dark);
}

.btn-whatsapp-big {
    background: #25D366;
    color: var(--white);
    width: 100%;
    justify-content: center;
    padding: 18px 30px;
    font-size: 1.1rem;
}

.btn-whatsapp-big:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-phone {
    background: var(--purple-main);
    color: var(--white);
    width: 100%;
    justify-content: center;
    padding: 18px 30px;
    font-size: 1.1rem;
}

.btn-phone:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

.whatsapp-icon {
    display: flex;
    align-items: center;
}

/* ===== Services Section ===== */
.services {
    padding: 100px 20px;
    background: var(--white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--purple-main), var(--orange-main), var(--purple-main));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--purple-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-medium);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--orange-main);
    box-shadow: 0 20px 40px rgba(107, 45, 139, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--purple-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-medium);
    line-height: 1.7;
}

/* ===== Consultas Section ===== */
.consultas {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-main) 100%);
    position: relative;
}

.consultas::before,
.consultas::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
}

.consultas::before {
    top: 0;
    background: linear-gradient(90deg, var(--orange-main) 0%, var(--orange-main) 33%, var(--white) 33%, var(--white) 66%, var(--orange-main) 66%);
}

.consultas::after {
    bottom: 0;
    background: linear-gradient(90deg, var(--white) 0%, var(--white) 33%, var(--orange-main) 33%, var(--orange-main) 66%, var(--white) 66%);
}

.consultas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.consultas-text {
    color: var(--white);
}

.consultas-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.consultas-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.consultas-list {
    list-style: none;
}

.consultas-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consultas-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.consultas-form h3 {
    color: var(--purple-dark);
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-main);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== Soporte Section ===== */
.soporte {
    padding: 100px 20px;
    background: var(--off-white);
}

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

.soporte-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--orange-main);
    transition: all 0.3s ease;
}

.soporte-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.soporte-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.soporte-card h3 {
    color: var(--purple-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.soporte-card p {
    color: var(--gray-medium);
    margin-bottom: 20px;
    line-height: 1.7;
}

.soporte-link {
    color: var(--orange-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.soporte-link:hover {
    color: var(--orange-dark);
}

/* ===== Contacto Section ===== */
.contacto {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.contacto .section-title {
    color: var(--purple-dark);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contacto-card {
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.whatsapp-card {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
}

.phone-card {
    background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-dark) 100%);
    color: var(--white);
}

.contacto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contacto-icon {
    margin-bottom: 20px;
}

.phone-icon {
    font-size: 3rem;
}

.contacto-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.contacto-card p {
    opacity: 0.9;
    margin-bottom: 25px;
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand p {
    color: var(--gray-light);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--orange-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange-main);
}

.footer-contact p {
    color: var(--gray-light);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-dark);
}

.footer-bottom p {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .consultas-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--purple-dark);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .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(7px, -6px);
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .consultas-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .contacto-card {
        padding: 40px 25px;
    }
    
    .phone-number {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid,
    .soporte-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}
