/* ==========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================== */
:root {
    --primary: #6f4b82;
    --primary-dark: #553766;
    --secondary: #a875ad;
    --pink: #e889b0;
    --pink-light: #f7dce8;
    --lavender: #eee3f1;
    --cream: #fffafc;
    --text: #403747;
    --text-muted: #6b5c75;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow-soft: 0 10px 30px rgba(111, 75, 130, 0.08);
    --shadow-hover: 0 15px 35px rgba(111, 75, 130, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight-text {
    color: var(--pink);
    font-weight: 600;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(111, 75, 130, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--lavender);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(111, 75, 130, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary);
}

.logo i {
    font-size: 1.6rem;
    color: var(--pink);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.btn-nav {
    background-color: var(--lavender);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: var(--primary-dark) !important;
}

.btn-navspecial{
    color:#6f4b82;
    font-size: 20px;
    text-decoration-line: underline;
}

.btn-nav:hover {
    background-color: var(--pink-light);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    padding: 6rem 0 8rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, var(--lavender) 100%);
}

.hero-shape-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 450px;
    height: 450px;
    background: var(--pink-light);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
    filter: blur(40px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.hero-badge i {
    color: var(--pink);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-decorative-card {
    position: absolute;
    bottom: 40px;
    right: 8%;
    background: var(--white);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    max-width: 320px;
    border-left: 4px solid var(--pink);
}

.hero-decorative-card i {
    font-size: 2rem;
    color: var(--primary);
}

.hero-decorative-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ==========================================
   SERVICIOS SECTION
   ========================================== */
.services-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--pink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary-dark);
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--pink);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--cream);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(168, 117, 173, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.service-card-featured {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--pink-light) 100%);
    border: 2px solid var(--secondary);
}

.service-badge-destacado {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.service-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(111, 75, 130, 0.08);
}

.service-icon-wrapper i {
    font-size: 1.75rem;
    color: var(--primary);
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.service-category {
    display: block;
    font-size: 0.85rem;
    color: var(--pink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

  .service-link-details {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background-color: var(--lavender);
    border: 1px solid rgba(168, 117, 173, 0.3);
    border-radius: 50px; /* Estilo tipo píldora / redondeado total */
    text-decoration: none;
    transition: var(--transition);
}

.service-link-details:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.service-link:hover {
    color: var(--pink);
    gap: 0.75rem;
}

.btn-featured-link {
    color: var(--primary-dark);
}

/* ==========================================
   SECCIÓN DE CONFIANZA
   ========================================== */
.trust-section {
    padding: 6rem 0;
    background-color: var(--cream);
    text-align: center;
}

.trust-header {
    max-width: 750px;
    margin: 0 auto 4rem;
}

.trust-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.trust-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.trust-item {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.trust-icon {
    width: 65px;
    height: 65px;
    background-color: var(--lavender);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.trust-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   LLAMADA A LA ACCIÓN (CTA)
   ========================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==========================================
   PÁGINAS INTERNAS (SOBRE NOSOTROS & CONTACTO)
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--cream) 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Sobre Nosotros Grid */
.about-main {
    padding: 6rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-text-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-card-visual {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--pink-light) 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.visual-card-inner i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.visual-card-inner h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.visual-card-inner p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Workflow Steps */
.workflow-section {
    padding: 6rem 0;
    background-color: var(--cream);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.step-num {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pink);
    display: block;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Values Grid */
.values-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-item {
    background-color: var(--cream);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(168, 117, 173, 0.1);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.value-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Page Layout */
.contact-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info-col h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info-col > p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-method-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--cream);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(168, 117, 173, 0.1);
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.whatsapp-bg {
    background-color: #25d366;
    color: var(--white);
}

.email-bg {
    background-color: var(--primary);
    color: var(--white);
}

.contact-method-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-method-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.method-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.method-link:hover {
    color: var(--pink);
}

/* Formulario Estilo */
.form-card {
    background-color: var(--cream);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(168, 117, 173, 0.15);
}

.form-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--secondary);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    font-family: 'Inter', sans-serif;
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--lavender);
}

.form-alert {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hidden {
    display: none;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--pink);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--pink);
    padding-left: 5px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ==========================================
   DISEÑO RESPONSIVE (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-decorative-card {
        display: none;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .workflow-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }
    .nav-menu.active {
        right: 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    .hero {
        padding: 4rem 0;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .form-card {
        padding: 1.5rem;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Diseño Responsivo para la Sección de Transparencia --- */
@media (max-width: 992px) {
    .transparency-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .transparency-section {
        padding: 4rem 1.5rem !important;
    }
}

/* --- Corrección Responsiva Definitiva para la Sección de Servicios --- */
@media (max-width: 992px) {
    .services-detailed-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .services-detail-section {
        padding: 4rem 1rem !important;
    }
    
    .service-detail-card {
        padding: 2rem !important;
    }
}


/* validacion del formulario */
/* Estilo base de la alerta */
.form-alert {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Oculto por defecto */
.form-alert.hidden {
    display: none;
}

/* Éxito */
.form-alert.success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

/* Error */
.form-alert.error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}