/**
 * Estilos de Secciones
 */

section {
    padding: 60px 20px;
}

section h2 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: #0f1729;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    color: #5a6478;
    font-size: 1.05rem;
    font-weight: 400;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Stats */
.stats {
    background: transparent;
    padding: 50px 20px;
}

/* Servicios */
.servicios {
    background: transparent;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: left;
    box-shadow: 0 8px 32px rgba(58, 123, 213, 0.12);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 41, 0.1), 0 0 25px rgba(58, 123, 213, 0.12);
    border-color: rgba(58, 123, 213, 0.35);
}

/* Icono cápsula a color para cada servicio */
.servicio-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover .servicio-icon {
    transform: translateY(-3px) scale(1.04);
}

/* Webs profesionales: azul corporativo */
.icon-web {
    background: linear-gradient(135deg, #3a7bd5, #5da4e8);
    box-shadow: 0 8px 20px rgba(58, 123, 213, 0.3);
}
.servicio-card:hover .icon-web {
    box-shadow: 0 12px 28px rgba(58, 123, 213, 0.45);
}

/* Tiendas online: verde dinero */
.icon-tienda {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}
.servicio-card:hover .icon-tienda {
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
}

/* CRM personalizado: púrpura */
.icon-crm {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}
.servicio-card:hover .icon-crm {
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.45);
}

/* Automatizaciones: ámbar/dorado */
.icon-auto {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}
.servicio-card:hover .icon-auto {
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
}

/* Mantenimiento web: cyan/teal */
.icon-mantenimiento {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}
.servicio-card:hover .icon-mantenimiento {
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.45);
}

/* SEO y rendimiento: rosa fucsia */
.icon-seo {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}
.servicio-card:hover .icon-seo {
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.45);
}

.servicio-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-bright);
    font-weight: 600;
}

.servicio-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.servicio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    margin-top: 1.25rem;
    color: var(--text-bright);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.servicio-link i {
    font-size: 0.85rem;
    margin: 0;
    color: currentColor;
}

.servicio-link:hover {
    color: var(--secondary-color);
}

/* Stats strip */
.widgets {
    background: transparent;
    padding: 60px 20px;
}

.widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
}

.widget {
    background: transparent;
    padding: 1.5rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: var(--transition-base);
    position: relative;
}

.widget:last-child {
    border-right: none;
}

.widget:hover {
    background: rgba(58, 123, 213, 0.04);
}

.widget h3 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #d8e4f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.widget p {
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enlaces */
.enlaces {
    background: rgba(9, 16, 32, 0.95);
    backdrop-filter: blur(12px);
}

.enlaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.enlace-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 32px rgba(58, 123, 213, 0.12);
    transition: var(--transition-base);
    position: relative;
    border: 1px solid var(--border-color);
}

.enlace-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 41, 0.1), 0 0 25px rgba(58, 123, 213, 0.1);
    border-color: rgba(58, 123, 213, 0.3);
}

.enlace-card a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-base);
}

.enlace-card:hover a {
    color: var(--text-bright);
}

.enlace-card i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    transition: var(--transition-base);
    display: block;
}

.enlace-card:hover i {
    color: white;
    transform: scale(1.1);
}

.enlace-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-bright);
    font-weight: 600;
}

/* Contacto */
.contacto {
    background: transparent;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Info lado izquierdo */
.contacto-tag {
    display: inline-block;
    background: rgba(58, 123, 213, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(58, 123, 213, 0.3);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.contacto-info h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-align: left;
    padding-bottom: 0;
}

.contacto-info h2::after {
    display: none;
}

.contacto-info h2 span {
    color: var(--primary-color);
}

.contacto-info > p {
    color: #5a6478;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contacto-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contacto-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contacto-item:hover .contacto-item-icon {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

/* WhatsApp: verde oficial */
.icon-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.contacto-item:hover .icon-whatsapp {
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Gmail: rojo oficial */
.icon-gmail {
    background: linear-gradient(135deg, #EA4335, #C5221F);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px rgba(234, 67, 53, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.contacto-item:hover .icon-gmail {
    box-shadow: 0 10px 24px rgba(234, 67, 53, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Reloj: azul tipo "respuesta rápida" */
.icon-clock {
    background: linear-gradient(135deg, #4F8EF7, #1A6BD8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px rgba(79, 142, 247, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.contacto-item:hover .icon-clock {
    box-shadow: 0 10px 24px rgba(79, 142, 247, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.contacto-item strong {
    display: block;
    color: var(--text-bright);
    font-size: 0.85rem;
    font-weight: 600;
}

.contacto-item span {
    color: #5a6478;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Formulario lado derecho */
.contacto-form-wrapper {
    background: linear-gradient(160deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(15, 23, 41, 0.06), 0 1px 3px rgba(15, 23, 41, 0.04);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    color: var(--text-bright);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(58, 123, 213, 0.05);
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 14px 32px;
}

/* Responsive contacto */
@media (max-width: 768px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contacto-info h2 {
        font-size: 2rem;
    }
}

/* Acordeón */
.acordeon-section {
    background: transparent;
    padding-top: 0;
    padding-bottom: 80px;
}

.acordeon {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.acordeon-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.acordeon-item.abierto {
    border-color: rgba(58, 123, 213, 0.4);
}

.acordeon-header {
    width: 100%;
    background: var(--card-color);
    color: var(--text-bright);
    border: none;
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    transition: background 0.3s ease;
    gap: 1rem;
}

.acordeon-header:hover {
    background: #202020;
}

.acordeon-item.abierto .acordeon-header {
    background: rgba(58, 123, 213, 0.08);
    color: white;
}

.acordeon-header span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.acordeon-header span i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.acordeon-icon {
    color: var(--text-color);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.acordeon-item.abierto .acordeon-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.acordeon-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: rgba(20, 21, 26, 0.6);
}

.acordeon-body p {
    padding: 1.2rem 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.acordeon-item.abierto .acordeon-body {
    max-height: 200px;
}

/* Proceso */
.proceso {
    background: transparent;
}

/* Proceso compacto — franja horizontal */
.proceso-strip {
    padding: 28px 20px;
}

.proceso-strip-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.proceso-strip-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 100px;
    text-align: center;
    position: relative;
}

.proceso-strip-num {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.proceso-strip-step i {
    font-size: 1.25rem;
    color: var(--primary-color);
    opacity: 0.85;
}

.proceso-strip-step strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
}

.proceso-strip-step span {
    font-size: 0.75rem;
    color: var(--text-color);
}

.proceso-strip-arrow {
    color: var(--border-color);
    font-size: 0.75rem;
    padding: 0 0.25rem;
    flex-shrink: 0;
}

/* Tech dentro de sobre-mí */
.sobre-mi-tech {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.2rem;
    margin-top: 1.2rem;
    padding: 0;
}

/* Portafolio */
.portafolio {
    background: transparent;
}

.portafolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    gap: 1.25rem;
    justify-content: center;
}

.portafolio-placeholder,
.testimonio-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-color);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.portafolio-placeholder i,
.testimonio-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

/* Proyecto card */
.proyecto-card {
    background: linear-gradient(160deg, #ffffff 0%, #fafbfd 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(15, 23, 41, 0.06), 0 1px 3px rgba(15, 23, 41, 0.04);
}

.proyecto-card:hover {
    transform: translateY(-6px);
    border-color: rgba(58, 123, 213, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(58, 123, 213, 0.1);
}

.proyecto-imagen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a0308 0%, #2d0510 100%);
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.proyecto-card:hover .proyecto-imagen img {
    transform: scale(1.05);
}

.proyecto-imagen.sin-imagen::after {
    content: 'Sin imagen';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 0.9rem;
}

.proyecto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 14, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.proyecto-card:hover .proyecto-overlay {
    opacity: 1;
}

.btn-ver-sitio {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.btn-ver-sitio:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(58, 123, 213, 0.45);
}

.proyecto-info {
    padding: 0.9rem 1rem;
}

.proyecto-info h3 {
    font-size: 0.95rem;
    color: var(--text-bright);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.proyecto-info p {
    color: var(--text-color);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.proyecto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.proyecto-tags span {
    background: rgba(58, 123, 213, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(58, 123, 213, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

/* Testimonios */
/* Tech Bar */
.tech-bar {
    padding: 20px 0;
}

.tech-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s;
    cursor: default;
}

.tech-item:hover {
    color: var(--text-bright);
}

.tech-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    opacity: 0.75;
    transition: opacity 0.25s;
}

.tech-item:hover i {
    opacity: 1;
}

/* Testimonios */
.testimonios {
    background: transparent;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonio-card {
    background: linear-gradient(160deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(15, 23, 41, 0.06), 0 1px 3px rgba(15, 23, 41, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-base);
    position: relative;
}

.testimonio-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.12;
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonio-card:hover {
    border-color: rgba(225,29,72,0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.testimonio-estrellas {
    display: flex;
    gap: 0.2rem;
}

.testimonio-estrellas i {
    color: #f59e0b;
    font-size: 0.85rem;
}

.testimonio-card p {
    color: var(--text-color);
    font-size: 0.93rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.testimonio-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.testimonio-autor strong {
    display: block;
    color: var(--text-bright);
    font-size: 0.9rem;
}

.testimonio-autor span {
    color: var(--text-color);
    font-size: 0.78rem;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    background: #25D366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.whatsapp-float i {
    font-size: 1.7rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.whatsapp-float-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.9rem;
    transition: max-width 0.35s ease, margin 0.35s ease;
    margin-left: 0;
}

.whatsapp-float:hover {
    width: auto;
    border-radius: var(--radius-full);
    padding: 0 20px 0 16px;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}

.whatsapp-float:hover .whatsapp-float-label {
    max-width: 120px;
    margin-left: 0.5rem;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

/* Pulso de atención al cargar */
@keyframes waPulse {
    0%   { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%  { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0.12); }
    100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
}

.whatsapp-float {
    animation: waPulse 2.5s ease-in-out 2s 3;
}

/* CTA Banner */
.cta-banner {
    background: transparent;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.btn-whatsapp-cta i {
    font-size: 1.2rem;
}

.btn-whatsapp-cta:hover {
    background: rgba(74, 222, 128, 0.18);
    border-color: rgba(74, 222, 128, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.2);
}

/* ── FAQ ── */
.faq {
    background: transparent;
}

.faq-lista {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: linear-gradient(160deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(15, 23, 41, 0.06), 0 1px 3px rgba(15, 23, 41, 0.04);
}

.faq-item::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(58, 123, 213, 0.06) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.faq-item:hover {
    border-color: rgba(58, 123, 213, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(58, 123, 213, 0.08);
}

.faq-item:hover::after,
.faq-item.abierto::after {
    opacity: 1;
}

.faq-item.abierto {
    border-color: rgba(58, 123, 213, 0.45);
    box-shadow: 0 12px 35px rgba(58, 123, 213, 0.15);
}

.faq-pregunta {
    width: 100%;
    background: transparent;
    color: var(--text-bright);
    border: none;
    padding: 1.25rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    text-align: left;
    transition: var(--transition-base);
    gap: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.2px;
}

.faq-pregunta:hover {
    background: rgba(58, 123, 213, 0.04);
}

.faq-item.abierto .faq-pregunta {
    background: rgba(58, 123, 213, 0.07);
    color: white;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    background: rgba(58, 123, 213, 0.1);
    border: 1px solid rgba(58, 123, 213, 0.2);
    border-radius: 50%;
    font-size: 0.7rem;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.faq-item:hover .faq-icon {
    background: rgba(58, 123, 213, 0.18);
    border-color: rgba(58, 123, 213, 0.35);
}

.faq-item.abierto .faq-icon {
    transform: rotate(180deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 16px rgba(58, 123, 213, 0.35);
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: transparent;
    position: relative;
    z-index: 1;
}

.faq-item.abierto .faq-respuesta {
    max-height: 300px;
}

.faq-respuesta p {
    padding: 0.4rem 1.6rem 1.4rem;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    border-top: 1px solid rgba(58, 123, 213, 0.1);
    padding-top: 1.1rem;
    margin: 0 1.6rem;
    padding-left: 0;
    padding-right: 0;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(58, 123, 213, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.cta-banner h2 {
    color: var(--text-bright);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-banner h2::after {
    display: none;
}

.cta-banner p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.cta-banner .btn-primary {
    text-decoration: none;
    display: inline-block;
}

/* Footer */
.footer {
    background: transparent;
    color: var(--text-color);
    padding: 3rem 20px 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f1729;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.footer-brand p {
    color: #5a6478;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-social h4 {
    color: var(--text-bright);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social .enlaces-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-social .enlace-card {
    padding: 0.75rem 1.25rem;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social .enlace-card i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.footer-social .enlace-card h3 {
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-links a {
    color: #5a6478;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #5a6478;
    font-weight: 500;
}

/* ── FAQ page ── */
.faq-page {
    padding-top: 60px;
    min-height: 80vh;
}

.faq-page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.faq-page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.faq-page-header h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.faq-back:hover {
    color: var(--primary-color);
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.faq-cta p {
    color: var(--text-color);
    font-size: 1.05rem;
}

.faq-cta .btn-primary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* FAQ Search */
.faq-search-wrap {
    position: relative;
    max-width: 520px;
    margin: 1.5rem auto 1.2rem;
}

.faq-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    font-size: 0.85rem;
    pointer-events: none;
}

.faq-search {
    width: 100%;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-bright);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1.2rem 0.75rem 2.6rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.faq-search:focus {
    outline: none;
    border-color: rgba(58, 123, 213, 0.5);
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

.faq-search::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}

/* FAQ Category filter */
.faq-cats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.faq-cat {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.faq-cat:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-cat.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* FAQ numbered + icon */
.faq-pregunta-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}

.faq-num {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    flex-shrink: 0;
    background: rgba(58, 123, 213, 0.12);
    border: 1px solid rgba(58, 123, 213, 0.2);
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
}

.faq-item.abierto .faq-num {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
}

.faq-cat-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.15), rgba(93, 164, 232, 0.05));
    border: 1px solid rgba(58, 123, 213, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.faq-item:hover .faq-cat-icon {
    transform: rotate(-6deg) scale(1.08);
}

.faq-item.abierto .faq-cat-icon {
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.3), rgba(93, 164, 232, 0.15));
    border-color: rgba(58, 123, 213, 0.45);
}

/* FAQ empty state */
.faq-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1rem;
    color: var(--text-color);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.faq-empty i {
    font-size: 1.8rem;
    opacity: 0.4;
}

.faq-empty p {
    font-size: 0.95rem;
    margin: 0;
}

/* FAQ contact form */
.faq-contact-form {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.faq-contact-inner {
    max-width: 620px;
    margin: 0 auto;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
}

.faq-contact-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-contact-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.faq-contact-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0 0 0.4rem;
}

.faq-contact-header p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

.faq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.faq-contact-inner input,
.faq-contact-inner textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-bright);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    resize: none;
}

.faq-contact-inner input:focus,
.faq-contact-inner textarea:focus {
    outline: none;
    border-color: rgba(58, 123, 213, 0.5);
}

.faq-contact-inner input::placeholder,
.faq-contact-inner textarea::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

.faq-contact-inner textarea {
    margin-bottom: 0.75rem;
}

.faq-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.faq-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4ade80;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.faq-wa-link:hover {
    opacity: 0.8;
}

.faq-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 9px 22px;
    cursor: pointer;
}

.faq-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.faq-form-success {
    display: none;
    text-align: center;
    color: #4ade80;
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
    padding: 0.6rem;
    background: rgba(34, 197, 94, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Responsive FAQ */
@media (max-width: 600px) {
    .faq-form-row {
        grid-template-columns: 1fr;
    }

    .faq-form-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .faq-submit {
        justify-content: center;
    }

    .faq-contact-inner {
        padding: 1.5rem 1.25rem;
    }

    .faq-cats {
        gap: 0.4rem;
    }

    .faq-cat {
        font-size: 0.78rem;
        padding: 4px 10px;
    }
}

/* =====================
   PÁGINA PROYECTOS
   ===================== */

.proyectos-page {
    padding-top: 60px;
    min-height: 80vh;
}

.proyectos-page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.proyectos-page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.proyectos-page-header h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proyecto-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.proyecto-detalle.visible {
    opacity: 1;
    transform: translateY(0);
}

.proyecto-detalle.reverse {
    direction: rtl;
}

.proyecto-detalle.reverse > * {
    direction: ltr;
}

.proyecto-detalle:last-of-type {
    border-bottom: none;
}

.proyecto-detalle-media {
    position: relative;
}

.proyecto-detalle-num {
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.08;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.proyecto-detalle-img-wrap {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s, transform 0.3s;
}

.proyecto-detalle-img-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.65), 0 0 30px rgba(225,29,72,0.12);
}

.proyecto-detalle-img-wrap img {
    width: 100%;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proyecto-detalle-img-wrap:hover img {
    transform: scale(1.03);
}

.proyecto-detalle-overlay {
    position: absolute;
    inset: 0;
    background: rgba(58, 123, 213, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.proyecto-detalle-overlay i {
    font-size: 1.5rem;
}

.proyecto-detalle-img-wrap:hover .proyecto-detalle-overlay {
    opacity: 1;
}

.proyecto-detalle-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proyecto-detalle-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pd-tipo {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.proyecto-detalle-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0;
    line-height: 1.1;
}

.pd-cliente {
    font-size: 0.88rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.pd-bloque {
    border-left: 2px solid rgba(58, 123, 213, 0.3);
    padding-left: 1rem;
}

.pd-bloque h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pd-bloque p {
    font-size: 0.92rem;
    color: var(--text-color);
    line-height: 1.65;
    margin: 0;
}

.pd-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pd-tech span {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pd-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.proyectos-cta {
    text-align: center;
    padding: 3rem 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.proyectos-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright);
}

.proyectos-cta .btn-primary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive proyectos */
@media (max-width: 900px) {
    .proyecto-detalle,
    .proyecto-detalle.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
        margin-bottom: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .proyecto-detalle-num {
        font-size: 3.5rem;
    }

    .proyecto-detalle-info h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .proyectos-page-header h1 {
        font-size: 2rem;
    }

    .proyecto-detalle-info h2 {
        font-size: 1.4rem;
    }
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid rgba(58, 123, 213, 0.2);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(15, 23, 41, 0.06);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-icons a {
    position: relative;
    overflow: hidden;
}

.footer-icons a i {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* LinkedIn: azul oficial #0A66C2 */
.social-linkedin:hover {
    border-color: #0A66C2;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4);
}

.social-linkedin::before {
    background: linear-gradient(135deg, #0A66C2, #0084d8);
}

.social-linkedin:hover::before {
    transform: scale(1);
}

.social-linkedin:hover i {
    transform: scale(1.15) rotate(-6deg);
}

/* GitHub: negro oficial #181717 */
.social-github:hover {
    border-color: #181717;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(24, 23, 23, 0.4);
}

.social-github::before {
    background: linear-gradient(135deg, #24292e, #181717);
}

.social-github:hover::before {
    transform: scale(1);
}

.social-github:hover i {
    transform: scale(1.15) rotate(360deg);
}

/* ── Sobre mí ── */
.sobre-mi {
    background: transparent;
}

.sobre-mi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: center;
}

.sobre-mi-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.avatar-iniciales {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(225,29,72,0.15), rgba(255,45,85,0.08));
    border: 2px solid rgba(225,29,72,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    background-clip: text;
    color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(225,29,72,0.4));
}

.avatar-iniciales::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tags span {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.skill-tags span:hover {
    border-color: rgba(225,29,72,0.4);
    color: var(--text-bright);
}

.sobre-mi-tag {
    display: inline-block;
    background: rgba(58, 123, 213, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(58, 123, 213, 0.3);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.sobre-mi-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 1.2rem;
    text-align: left;
    padding-bottom: 0;
}

.sobre-mi-content h2::after {
    display: none;
}

.sobre-mi-content h2 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sobre-mi-content > p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.sobre-mi-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.smi-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.smi-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.smi-stat span {
    color: var(--text-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(10, 102, 194, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(10, 102, 194, 0.35);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.btn-linkedin:hover {
    background: rgba(10, 102, 194, 0.25);
    border-color: rgba(10, 102, 194, 0.6);
    color: #93c5fd;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sobre-mi-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sobre-mi-content h2 {
        font-size: 2rem;
        text-align: center;
    }

    .sobre-mi-tag {
        display: block;
        text-align: center;
    }

    .sobre-mi-content > p {
        text-align: center;
    }

    .sobre-mi-stats {
        justify-content: center;
    }

    .btn-linkedin {
        display: flex;
        justify-content: center;
    }
}

/* ── Precios ── */
.precios {
    background: transparent;
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.precio-card {
    background: linear-gradient(160deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(15, 23, 41, 0.06), 0 1px 3px rgba(15, 23, 41, 0.04);
}

/* Halo gradiente decorativo en cada tarjeta */
.precio-card::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(58, 123, 213, 0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.precio-card:hover::after {
    opacity: 1;
}

/* Entrada con spring al hacer scroll */
.precio-card.fade-in {
    opacity: 0;
    transform: translateY(70px) scale(0.94);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.precio-card.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.precio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--transition-base);
    z-index: 1;
}

.precio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(225,29,72,0.4);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 40px rgba(225,29,72,0.15);
}

.precio-card:hover::before {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.precio-destacado {
    border-color: rgba(225,29,72,0.45);
    box-shadow: 0 12px 40px rgba(225,29,72,0.18);
    background: linear-gradient(160deg, #ffffff 0%, #eef4fc 100%);
    transform: scale(1.02);
}

.precio-destacado::before {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.precio-destacado:hover {
    transform: translateY(-8px) scale(1.02);
}

.precio-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: linear-gradient(135deg, #ffffff, #d4d8de);
    color: #0a0a0e;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.precio-header {
    position: relative;
    z-index: 1;
}

.precio-header i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.15), rgba(93, 164, 232, 0.05));
    border: 1px solid rgba(58, 123, 213, 0.25);
    border-radius: 14px;
    margin-bottom: 1.1rem;
    box-shadow: 0 8px 20px rgba(58, 123, 213, 0.1);
    transition: var(--transition-base);
}

.precio-card:hover .precio-header i {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: 0 12px 25px rgba(58, 123, 213, 0.25);
}

.precio-header h3 {
    font-size: 1.35rem;
    color: var(--text-bright);
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
}

.precio-header p {
    color: var(--text-color);
    font-size: 0.88rem;
    line-height: 1.5;
}

.precio-precio {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 1.3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.precio-precio .desde {
    font-size: 0.78rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.precio-precio .cantidad {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -1px;
}

.precio-precio .hasta {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.precio-consulta-wrap {
    justify-content: center;
}

.precio-consulta {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.precio-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.precio-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.precio-card:hover .precio-features li {
    color: var(--text-bright);
}

.precio-features li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    background: rgba(58, 123, 213, 0.12);
    border-radius: 50%;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.precio-card:hover .precio-features li i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-precio {
    display: block;
    text-align: center;
    background: transparent;
    border: 1px solid rgba(58, 123, 213, 0.3);
    color: var(--text-bright);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
    overflow: visible;
}

/* Chispa eléctrica central que aparece y se expande */
.btn-precio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    box-shadow:
        24px -22px 0 rgba(58, 123, 213, 0.9),
        -28px -18px 0 rgba(255, 255, 255, 0.85),
        32px 18px 0 rgba(93, 164, 232, 0.9),
        -22px 24px 0 rgba(255, 255, 255, 0.8),
        40px -6px 0 rgba(58, 123, 213, 0.7),
        -38px 8px 0 rgba(93, 164, 232, 0.7),
        14px -32px 0 rgba(255, 255, 255, 0.75),
        -14px 30px 0 rgba(58, 123, 213, 0.75);
    filter: drop-shadow(0 0 4px rgba(58, 123, 213, 0.9));
}

/* Rayos diagonales que cruzan el botón al hacer hover */
.btn-precio::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-full);
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(75deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%),
        linear-gradient(105deg, transparent 38%, rgba(58, 123, 213, 0.8) 50%, transparent 62%);
    mix-blend-mode: screen;
    filter: blur(0.5px);
}

.btn-precio:hover::before {
    animation: btnSparks 0.65s ease-out forwards;
}

.btn-precio:hover::after {
    animation: btnLightning 0.6s ease-out forwards;
}

@keyframes btnSparks {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    35%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
}

@keyframes btnLightning {
    0%   { opacity: 0; background-position: -100% 0, 100% 0; }
    50%  { opacity: 1; }
    100% { opacity: 0; background-position: 100% 0, -100% 0; }
}

.btn-precio:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(58, 123, 213, 0.35), 0 0 30px rgba(58, 123, 213, 0.3);
    transform: translateY(-2px);
}

.precio-destacado .btn-precio {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: #ffffff;
}

.precio-destacado .btn-precio:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(58, 123, 213, 0.3);
}

.precios-nota {
    text-align: center;
    color: #5a6478;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.precios-nota i {
    color: var(--primary-color);
    opacity: 0.7;
}

/* ── Comparador de planes ── */
.comparador-wrap {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparador-toggle {
    background: #ffffff;
    border: 1px solid rgba(58, 123, 213, 0.35);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    backdrop-filter: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.comp-toggle-text {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.comp-toggle-text i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.comp-toggle-icon {
    font-size: 0.75rem;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.comparador-toggle:hover {
    background: rgba(58, 123, 213, 0.12);
    border-color: rgba(58, 123, 213, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 123, 213, 0.18);
}

.comparador-toggle.open .comp-toggle-icon {
    transform: rotate(180deg);
}

.comparador-panel {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.comparador-panel.open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 2rem;
}

.comparador-scroll {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, #ffffff 0%, #fafbfd 100%);
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(15, 23, 41, 0.06), 0 1px 3px rgba(15, 23, 41, 0.04);
}

.comparador-tabla {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.comparador-tabla thead th {
    background: rgba(58, 123, 213, 0.08);
    padding: 1.1rem 1rem;
    text-align: center;
    color: var(--text-bright);
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(58, 123, 213, 0.25);
    white-space: nowrap;
}

.comparador-tabla thead th i {
    color: var(--primary-color);
    margin-right: 0.45rem;
}

.comparador-tabla th.comp-feat-col {
    text-align: left;
    background: rgba(58, 123, 213, 0.04);
    min-width: 260px;
}

.comparador-tabla tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    color: var(--text-color);
}

.comparador-tabla tbody td:first-child {
    text-align: left;
    color: var(--text-bright);
    font-weight: 500;
}

.comparador-tabla tr.comp-cat td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(58, 123, 213, 0.15);
}

.comparador-tabla tr.comp-cat td i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

.comparador-tabla tbody tr:not(.comp-cat):hover td {
    background: rgba(58, 123, 213, 0.04);
}

.comparador-tabla .yes {
    color: #22c55e;
    font-size: 1rem;
}

.comparador-tabla .no {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .comparador-title {
        font-size: 1.4rem;
    }
    .comparador-tabla {
        font-size: 0.85rem;
    }
    .comparador-tabla thead th {
        padding: 0.8rem 0.6rem;
        font-size: 0.85rem;
    }
    .comparador-tabla tbody td {
        padding: 0.65rem 0.7rem;
    }
}

@media (max-width: 768px) {
    .precios-grid {
        grid-template-columns: 1fr;
    }
}

/* Botón de eliminar */
.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-base);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: #dc2626;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* Sidebar iconos sociales */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(18, 19, 24, 0.85);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px);
    transition: var(--transition-base);
}

.social-sidebar a:last-child {
    border-bottom: 1px solid var(--border-color);
}

.social-sidebar a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 600px) {
    .social-sidebar {
        display: none;
    }
}

/* WhatsApp flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 20px 12px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.4);
    transition: var(--transition-base);
}

.whatsapp-btn i {
    font-size: 1.4rem;
    line-height: 1;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 30px rgba(58, 123, 213, 0.55);
    filter: brightness(1.1);
}

/* Responsive Secciones */
@media (max-width: 768px) {
    section {
        padding: 60px 16px;
    }

    section h2 {
        font-size: 1.9rem;
    }

    .servicios-grid,
    .proceso-grid,
    .portafolio-grid,
    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .cta-banner h2 {
        font-size: 1.7rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn-primary,
    .btn-whatsapp-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .sobre-mi-stats {
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    .precio-card {
        padding: 1.5rem;
    }

    .faq-pregunta {
        font-size: 0.95rem;
        padding: 1rem 1.2rem;
    }

    .contacto-wrapper {
        gap: 2.5rem;
    }

    .proceso-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    section {
        padding: 48px 16px;
    }

    section h2 {
        font-size: 1.65rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .servicio-card,
    .proceso-step {
        padding: 1.5rem;
    }

    .contacto-form-wrapper {
        padding: 1.5rem;
    }

    .precios-grid {
        gap: 1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .footer-icons a {
        width: 38px;
        height: 38px;
    }

    .whatsapp-btn span {
        display: none;
    }

    .whatsapp-btn {
        padding: 14px;
        border-radius: 50%;
    }
}
