/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

:root {
    --primary-navy: #21325E;
    --secondary-yellow: #FFD32D;
    --accent-blue: #3E54AC;
    --neutral-bg: #F1F6F9;
    --white: #ffffff;
    --text-dark: #21325E;
    --text-light: #F1F6F9;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--neutral-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
    font-family: 'Poppins', sans-serif;
}

/* --- Header & Navigation --- */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-navy);
    padding: 0.8rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-yellow);
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-footer {
    height: 60px;
    margin-bottom: 20px;
}

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

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--secondary-yellow);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-yellow);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(33, 50, 94, 0.9) 0%, rgba(33, 50, 94, 0.4) 100%), url('../../img/herorastreo.png') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--secondary-yellow);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #21325E;
    color: #FFD32D !important;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.8rem;
    margin-top: 20px;
    transition: transform 0.3s ease;
    border: none;
}

.btn-phone:hover {
    transform: scale(1.05);
}

.btn-phone i {
    font-size: 2rem;
}

.hero .btn-cta {
    background-color: var(--secondary-yellow);
    color: var(--primary-navy);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--secondary-yellow);
}

.hero .btn-cta:hover {
    background-color: transparent;
    color: var(--secondary-yellow);
}

/* --- Sections General Styles --- */
section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-yellow);
    border-radius: 2px;
}

/* --- Cards & Forms --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    resize: none;
}

input:focus,
textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(62, 84, 172, 0.1);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-navy);
    transform: translateY(-2px);
}

/* --- Rating Section --- */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-stars i {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.rating-stars i.active {
    color: var(--secondary-yellow);
}

/* --- Grid Layouts --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- How It Works --- */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.step-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-navy);
    color: var(--secondary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
}


/* --- FAQ Accordion --- */
.faq-section {
    background-color: var(--white);
}

#faq {
    background-color: var(--white);
}

.accordion-item {
    background-color: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 20px;
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-navy);
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--accent-blue);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafafa;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 500px;
}

.accordion-item.active .accordion-header {
    border-bottom: 1px solid #eee;
}

/* --- Contact Section --- */
.contact-info {
    background-color: var(--primary-navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
}

.contact-info h3 {
    color: var(--secondary-yellow);
    ;
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-detail i {
    font-size: 1.4rem;
    color: var(--secondary-yellow);
}

.phone-highlight {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-yellow);
    margin-top: 20px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.phone-highlight:hover {
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-navy);
    color: #ccc;
    padding: 40px 5% 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-yellow);
}

.copyright {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* --- Social Links Styling --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.social-links a[title="Facebook"] {
    background-color: #1877F2;
}

.social-links a[title="Instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a[title="TikTok"] {
    background-color: #010101;
}

.social-links a[title="WhatsApp"] {
    background-color: #25D366;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-navy);
        padding: 20px;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .price-card.featured {
        transform: scale(1);
    }
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    animation: slideIn 0.5s ease-out;
    z-index: 2000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}