/* ===== Variables y Reset ===== */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #d4af37;
    --dark-color: #0f1f35;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
    --gray: #6c757d;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    position: relative;
    overflow: hidden;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    background: var(--primary-color);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.btn-consulta {
    background: var(--secondary-color) !important;
    color: var(--dark-color) !important;
    border-radius: 30px;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600;
    margin-left: 1rem;
}

.btn-consulta:hover {
    background: #e6c04a !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(15, 31, 53, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

.hero-section h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 400;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    color: var(--dark-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e6c04a;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* ===== Sobre Mí ===== */
#sobre-mi {
    background: var(--white);
}

#sobre-mi img {
    border: 5px solid var(--secondary-color);
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.feature-box i {
    font-size: 1.3rem;
}

/* ===== Service Cards ===== */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.service-destacado {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a5080 100%);
    color: var(--white);
    border-color: var(--secondary-color);
}

.service-destacado h3,
.service-destacado li {
    color: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.service-destacado .service-icon {
    background: var(--white);
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card ul {
    margin-top: 1rem;
}

.service-card ul li {
    padding: 0.5rem 0;
}

/* ===== Segunda Oportunidad Section ===== */
#segunda-oportunidad img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.info-box {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.target-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.target-card i {
    color: var(--primary-color);
}

.target-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== Process Steps ===== */
.process-step {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    height: 100%;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    font-family: 'Playfair Display', serif;
}

.process-step h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.stars {
    color: var(--secondary-color);
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
}

.testimonial-author span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== Accordion FAQ ===== */
.accordion-button {
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.accordion-body {
    background: var(--white);
    padding: 1.5rem;
}

/* ===== Feature Box Alt ===== */
.feature-box-alt {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-box-alt:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-box-alt i {
    color: var(--secondary-color);
}

.feature-box-alt h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

/* ===== Contact Section ===== */
.contact-info {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    min-width: 40px;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: var(--primary-color);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== Contact Form ===== */
.contact-form .form-control,
.contact-form .form-select {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
}

.footer h4, .footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer hr {
    border-color: rgba(255,255,255,0.1);
}

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

.whatsapp-float:hover {
    background: #128c7e;
    color: var(--white);
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

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

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

    .hero-section h2 {
        font-size: 1.3rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-consulta {
        margin-left: 0;
        margin-top: 1rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== Utility Classes ===== */
.bg-primary {
    background: var(--primary-color) !important;
}

.bg-secondary {
    background: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}
