/* ============================================================
   VARIABLES Y RESET
   ============================================================ */
:root {
    --primary: #0f5b7a;
    --primary-light: #1a7a9e;
    --primary-dark: #0a3d54;
    --secondary: #e8f4f8;
    --text-dark: #1a2a3a;
    --text-light: #6b7a8a;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* ============================================================
   HEADER STICKY
   ============================================================ */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.header-sticky .navbar {
    padding: 0.25rem 0;
}

.header-sticky .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    padding-left: 0;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.header-sticky .nav-link {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.header-sticky .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.header-sticky .nav-link:hover::after,
.header-sticky .nav-link.active::after {
    width: 70%;
}

.header-sticky .nav-link:hover {
    color: var(--primary);
}

.header-sticky .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1400px) {
    .header-sticky .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* ============================================================
   MAIN WRAPPER - LAYOUT DE 2 COLUMNAS
   ============================================================ */
.main-wrapper {
    padding-top: 70px;
    min-height: 100vh;
}

.main-content {
    padding-right: 20px;
    padding-left: 0;
}

.sidebar-wrapper {
    position: relative;
    padding-right: 0;
    padding-left: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    padding: 60px 0 40px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f7fb 0%, #e8f4f8 100%);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 91, 122, 0.05), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px 0 20px 30px;  /* AÑADIDO padding-left: 30px */
    max-width: 100%;
}

.badge-hero {
    display: inline-block;
    background: rgba(15, 91, 122, 0.1);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    max-width: 600px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 91, 122, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    background: rgba(15, 91, 122, 0.08);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   ESPECIALIDADES
   ============================================================ */
.section-especialidades {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.card-especialidad {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-especialidad:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card-especialidad .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(15, 91, 122, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.card-especialidad h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}

.card-especialidad p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   PROCESO
   ============================================================ */
.section-proceso {
    background: var(--secondary);
    border-radius: var(--radius);
    margin-bottom: 30px;
    padding: 60px 30px;
}

.card-proceso {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.card-proceso:hover {
    transform: translateY(-5px);
}

.proceso-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(15, 91, 122, 0.08);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-proceso h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.card-proceso > p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.proceso-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.proceso-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0.25rem 0;
}

.proceso-list li i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.section-porque {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.testimonial-card {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: var(--radius);
    position: relative;
}

.testimonial-card .bi-quote {
    font-size: 3rem;
    color: rgba(15, 91, 122, 0.15);
    margin-bottom: 1rem;
    display: block;
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.testimonial-card cite {
    font-style: normal;
    color: var(--text-light);
    font-weight: 500;
}

.card-ventaja {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-ventaja:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card-ventaja i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
}

.card-ventaja h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.card-ventaja p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.section-faq {
    background: var(--secondary);
    border-radius: var(--radius);
    margin-bottom: 30px;
    padding: 60px 30px;
}

.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 12px !important;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: var(--white) !important;
    color: var(--text-dark) !important;
    border: none;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background: var(--white) !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f5b7a'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.section-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 50px 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.section-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.section-cta .btn {
    background: white;
    color: var(--primary);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.section-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: white;
    color: var(--primary);
}

/* ============================================================
   FORMULARIO SIDEBAR - STICKY
   ============================================================ */
.formulario-sidebar {
    position: sticky;
    top: 90px;
    z-index: 10;
    margin-right: -15px;
}

.formulario-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
}

.formulario-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
}

.formulario-header h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
}

.formulario-header p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.2rem 0 0.3rem;
}

.formulario-header small {
    font-size: 0.75rem;
    color: var(--text-light);
}

.formulario-container .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.formulario-container .form-control {
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.formulario-container .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 91, 122, 0.08);
}

.formulario-container .form-control::placeholder {
    color: #b0b8c4;
    font-size: 0.85rem;
}

.formulario-container .form-check-input {
    border: 2px solid #d0d5db;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.15rem;
}

.formulario-container .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.formulario-container .form-check-label {
    font-size: 0.78rem;
    color: var(--text-light);
    padding-left: 0.25rem;
}

.formulario-container .form-check-label a {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.formulario-container .form-check-label a:hover {
    color: var(--primary-light);
}

.formulario-container .btn-primary {
    padding: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
}

.formulario-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary);
}

.formulario-footer small {
    font-size: 0.65rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #0a1929;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    margin-top: 30px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.footer-contact li i {
    color: var(--primary-light);
    width: 20px;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.06);
    margin: 2rem 0 1.5rem;
}

.footer .text-center p {
    font-size: 0.8rem;
    opacity: 0.5;
    margin: 0;
}

/* ============================================================
   MODALES
   ============================================================ */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid var(--secondary);
    padding: 1.5rem 2rem;
}

.modal-header h5 {
    font-weight: 700;
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.modal-body h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-body p,
.modal-body li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-body ul {
    padding-left: 1.5rem;
}

.modal-footer {
    border-top: 2px solid var(--secondary);
    padding: 1.2rem 2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1400px) {
    .formulario-sidebar {
        margin-right: -30px;
    }

    .formulario-container {
        padding: 2rem;
    }
}

@media (min-width: 1600px) {
    .formulario-sidebar {
        margin-right: -50px;
    }

    .formulario-container {
        padding: 2rem 2rem 1.5rem;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .formulario-sidebar {
        margin-right: 0;
    }
}

@media (max-width: 992px) {
    .main-content {
        padding-right: 0;
    }

    .sidebar-wrapper {
        margin-top: 30px;
        padding: 0 15px;
    }

    .formulario-sidebar {
        position: relative;
        top: 0;
        margin-right: 0;
    }

    .formulario-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.2rem;
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-proceso,
    .section-faq {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-item {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-cta h2 {
        font-size: 1.6rem;
    }

    .section-cta {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .badge-hero {
        font-size: 0.6rem;
        padding: 0.25rem 0.8rem;
    }

    .hero-stats {
        gap: 0.8rem;
    }

    .stat-item {
        flex: 0 0 calc(50% - 0.4rem);
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .card-especialidad,
    .card-proceso,
    .card-ventaja {
        padding: 1.25rem;
    }

    .formulario-container {
        padding: 1rem;
    }
}