/* ========== VARIABLES Y RESET ========== */
:root {
    --primary-dark: #404B62;
    --primary-orange: #F54927;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --gray-text: #4a4a4a;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== HEADER / NAVBAR ========== */
.navbar-custom {
    background-color: var(--primary-dark);
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand .logo-img {
    max-height: 50px;
    width: auto;
}

.navbar-custom .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-orange) !important;
}

.navbar-toggler {
    background-color: var(--white);
    border: none;
}

/* Menú hamburguesa a 860px */
@media (max-width: 860px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        z-index: 1000;
        box-shadow: 0 15px 20px rgba(0,0,0,0.1);
    }
    .navbar-nav {
        text-align: center;
    }
    .navbar-custom .nav-link {
        margin: 0.5rem 0;
    }
}

@media (min-width: 861px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-toggler {
        display: none;
    }
}

/* ========== SECCIÓN HERO ========== */
.hero-section {
    position: relative;
    min-height: 90vh;
    background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65); /* opacidad 0.65 para mejor legibilidad, cumple opaco */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-cta {
    background-color: var(--primary-orange);
    border: none;
    padding: 12px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.2s, background 0.2s;
}

.btn-cta:hover {
    background-color: #d93a1a;
    transform: scale(1.03);
}

/* ========== SECCIONES GENERALES (padding 50px) ========== */
.about-section,
.services-grid-section,
.about-me-section,
.testimonials-section,
.contact-section {
    padding: 50px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.title-underline {
    width: 70px;
    height: 3px;
    background-color: var(--primary-orange);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

/* ========== GRID SERVICIOS ========== */
.service-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary-orange);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

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

/* ========== QUIÉN SOY ========== */
.about-img {
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.about-img:hover {
    transform: scale(1.02);
}

/* ========== TESTIMONIOS ========== */
.testimonial-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    height: 100%;
}

.testimonial-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-orange);
}

.testimonial-text {
    font-style: italic;
    margin: 1rem 0;
    color: #2c3e50;
}

.testimonial-card h4 {
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary-dark);
}

/* ========== CONTACTO ========== */
.contact-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 24px;
    height: 100%;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.contact-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list i {
    width: 35px;
    height: 35px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-form-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.required-field:after {
    content: " *";
    color: var(--primary-orange);
    font-weight: bold;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.captcha-code {
    background: #2c3e50;
    color: #f1c40f;
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 5px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--primary-dark);
    color: #e0e0e0;
    padding: 50px 0 20px;
    margin-top: 30px;
}

.footer h5 {
    color: white;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

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

.newsletter-form .form-control {
    border-radius: 30px 0 0 30px;
    border: none;
}

.newsletter-form .btn {
    border-radius: 0 30px 30px 0;
    background: var(--primary-orange);
    border: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 62px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 100;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #20b859;
    transform: scale(1.1);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .contact-info, .contact-form-card {
        padding: 1.5rem;
    }
}