/* ===================================
   CAPACITACIONES ANCASH - ESTILOS PRINCIPALES
   Diseño Moderno y Minimalista
   =================================== */

/* ----- VARIABLES CSS ----- */
:root {
    --primary: #0f2a4a;
    --secondary: #2874a6;
    --accent: #e67e22;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #64748b;
    --success: #27ae60;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ----- RESET Y BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ----- UTILIDADES ----- */
.bg-custom-blue {
    background-color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.section {
    padding: 80px 0;
}

.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }

/* ----- TOP BAR ----- */
.top-bar {
    border-bottom: 1px solid #e9ecef;
}

.contact-info-group {
    gap: 0;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text small {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* ----- NAVBAR ----- */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.social-icons a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ----- SECCIÓN HERO ----- */
.hero-angled-section {
    position: relative;
    background: linear-gradient(rgba(15, 42, 74, 0.85), rgba(15, 42, 74, 0.75)), 
                url('../img/portada.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    padding: 120px 0 100px;
}

.hero-text-content h1 {
    font-weight: 800;
    line-height: 1.2;
}

/* ----- FORMULARIO HERO ----- */
.angled-form-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.angled-form-box .form-control,
.angled-form-box .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
}

.angled-form-box .form-control:focus,
.angled-form-box .form-select:focus {
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3);
}

/* ----- BOTONES ----- */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-accent:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

/* ----- SECCIÓN HEADER ----- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header .bar {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 20px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ----- GRID DE SERVICIOS ----- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #eff6ff;
    color: var(--secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ----- SOFTWARE HIGHLIGHT ----- */
.software-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5a 100%);
    padding: 80px 20px;
    color: var(--white);
}

.software-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.software-text {
    flex: 1;
    min-width: 300px;
}

.software-text .tag {
    background: var(--accent);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
}

.software-image {
    flex: 1;
    min-width: 300px;
}

.software-image img {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ----- FOOTER ----- */
.footer {
    background: #0f172a;
    color: #cbd5e1;
}

.footer-main {
    padding: 60px 0 30px;
}

.footer-logo {
    max-height: 50px;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* ----- WHATSAPP FLOTANTE ----- */
.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: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@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);
    }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 991px) {
    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-angled-section {
        padding: 80px 0 60px;
    }

    .top-bar {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .software-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .footer-main {
        padding: 40px 0 20px;
    }
}

/* ----- SMOOTH SCROLL ----- */
html {
    scroll-behavior: smooth;
}

/* ----- ANIMACIONES DE ENTRADA ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.flash-section {
    padding: 100px 20px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.flash-text {
    flex: 1;
    min-width: 300px;
}

.result-card-mockup {
    flex: 1;
    min-width: 300px;
}

/* ----- TARJETAS DE PRECIOS ----- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #eee;
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.price-card.featured {
    border: 3px solid var(--accent);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.2);
}

.badge-promo {
    background: var(--accent);
    color: white;
    padding: 5px 30px;
    position: absolute;
    top: 20px;
    right: -35px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.price-amount {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 800;
    margin: 20px 0 10px;
}

.price-period {
    color: var(--gray);
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin: 30px 0;
    text-align: left;
    padding: 0;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: #27ae60;
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: white;
}