
/* ========================================
   RESET CSS Y CONFIGURACIÓN BASE
   ======================================== */

/* Reset universal para eliminar márgenes y padding por defecto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración base del body con tipografía optimizada */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #1d1d1f; /* Color principal del texto */
    background-color: #f5f5f7; /* Fondo principal del sitio */
    -webkit-font-smoothing: antialiased; /* Suavizado de fuentes en WebKit */
    -moz-osx-font-smoothing: grayscale; /* Suavizado de fuentes en Firefox */
}
/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */

/* Header fijo en la parte superior */
header {
    background-color: #000000; /* Fondo negro para contraste */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
    position: fixed; /* Header fijo */
    width: 100%;
    top: 0;
    z-index: 1000; /* Asegurar que esté por encima de otros elementos */
    transition: all 0.3s ease; /* Transición suave para cambios */
}

.navbar {
    padding: 0;
    height: 44px;
}

.nav-container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h2 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.022em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding: 0 15px;
    height: 44px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    border-radius: 0;
}

.nav-link:hover {
    color: #0071e3;
    background-color: transparent;
}

main {
    margin-top: 44px;
    min-height: calc(100vh - 44px);
}

/* Hero simple para páginas secundarias */
.hero {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #1d1d1f;
    padding: 80px 0 100px;
    text-align: center;
}

/* Hero moderno solo para la página de inicio */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
    background: none;
    padding: 0;
    text-align: left;
}

/* Estilos específicos para el hero moderno */
.hero-modern .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.hero-modern .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-modern .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(1deg); }
    66% { transform: translateY(-15px) rotate(-1deg); }
}

/* Contenido del hero simple */
.hero-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Contenido del hero moderno */
.hero-modern .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Títulos del hero simple */
.hero h1 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 6px;
    color: #1d1d1f;
}

.hero h2 {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.007em;
    margin-bottom: 19px;
    color: #86868b;
}

.hero p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    margin-bottom: 0.8em;
    color: #1d1d1f;
}

/* Títulos del hero moderno */
.hero-modern h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #ffffff;
}

.hero-modern h2 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-modern .hero-description {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
}

.hero-modern .highlight {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: highlightGlow 3s ease-in-out infinite;
}

@keyframes highlightGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-modern .hero-text {
    text-align: left;
}

.hero-modern .hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #1d1d1f;
    border: 2px solid #1d1d1f;
}

.btn-outline:hover {
    background: #1d1d1f;
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-modern .hero-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-modern .stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-modern .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-modern .stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-modern .stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); }
    40% { transform: translateX(-50%) rotate(45deg) translateY(-10px); }
    60% { transform: translateX(-50%) rotate(45deg) translateY(-5px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 22px;
}

/* Sección de proyectos preview */
.projects-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 700;
    letter-spacing: -0.003em;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.section-header p {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto;
}

.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-preview {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-preview:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    font-size: 32px;
}

.project-preview h3 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.project-preview p {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #86868b;
    margin-bottom: 24px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0071e3;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #0077ed;
    transform: translateX(5px);
}

.section-cta {
    text-align: center;
}

/* Sección sobre mí */
.about-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 700;
    letter-spacing: -0.003em;
    margin-bottom: 24px;
    color: #ffffff;
}

.about-text p {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.skills-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: codeGlow 4s ease-in-out infinite;
}

@keyframes codeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
}

.code-line {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.code-line.indent {
    padding-left: 20px;
}

.code-keyword {
    color: #ff6b6b;
    font-weight: 600;
}

.code-variable {
    color: #4ecdc4;
}

.code-operator {
    color: #ffe66d;
}

.code-string {
    color: #95e1d3;
}

.code-function {
    color: #a8e6cf;
}

.code-bracket {
    color: #ffe66d;
}

footer {
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer-content p {
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #86868b;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: #1d1d1f;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    background-color: transparent;
}

.social-link:hover {
    color: #0071e3;
    background-color: rgba(0, 113, 227, 0.1);
    transform: scale(1.1);
}

@media (max-width: 1068px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-modern .hero-content {
        padding: 0 16px;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-modern .hero-text {
        text-align: center;
    }
    
    .hero-modern .hero-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .container {
        padding: 80px 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .nav-link {
        padding: 0 10px;
        font-size: 11px;
    }
    
    .hero h1 {
        font-size: 40px;
        line-height: 1.1;
    }
    
    .hero h2 {
        font-size: 24px;
        line-height: 1.16667;
    }
    
    .hero p {
        font-size: 19px;
        line-height: 1.42105;
    }
    
    .hero-modern h1 {
        font-size: 48px;
        line-height: 1.1;
    }
    
    .hero-modern h2 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .hero-modern .hero-description {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .hero-modern .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-modern .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-modern .stat-item {
        padding: 20px;
    }
    
    .hero-modern .stat-number {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 36px;
        line-height: 1.125;
    }
    
    .section-header p {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .project-preview {
        padding: 30px;
    }
    
    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .project-preview h3 {
        font-size: 20px;
        line-height: 1.25;
    }
    
    .about-text h2 {
        font-size: 36px;
        line-height: 1.125;
    }
    
    .about-text p {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .code-animation {
        padding: 20px;
    }
    
    .code-line {
        font-size: 14px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .hero-modern h1 {
        font-size: 36px;
        line-height: 1.1;
    }
    
    .hero-modern h2 {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .hero-modern .hero-description {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .section-header h2 {
        font-size: 28px;
        line-height: 1.125;
    }
    
    .section-header p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .project-preview {
        padding: 20px;
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .project-preview h3 {
        font-size: 18px;
        line-height: 1.25;
    }
    
    .about-text h2 {
        font-size: 28px;
        line-height: 1.125;
    }
    
    .about-text p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .code-animation {
        padding: 15px;
    }
    
    .code-line {
        font-size: 12px;
    }
    
    .skill-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

.projects-section {
    background-color: #f5f5f7;
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: white;
    font-size: 48px;
    opacity: 0.8;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 24px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.project-category {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #0071e3;
    margin-bottom: 16px;
}

.project-description {
    font-size: 16px;
    line-height: 1.42105;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.project-features {
    margin-bottom: 24px;
}

.project-features h4 {
    font-size: 18px;
    line-height: 1.381;
    font-weight: 600;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-features li {
    font-size: 14px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #86868b;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.project-features li:before {
    content: "•";
    color: #0071e3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.project-tech {
    margin-bottom: 32px;
}

.project-tech h4 {
    font-size: 18px;
    line-height: 1.381;
    font-weight: 600;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: #0071e3;
    color: white;
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.022em;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.project-link i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .projects-section {
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-content h3 {
        font-size: 20px;
        line-height: 1.125;
    }
    
    .project-description {
        font-size: 15px;
        line-height: 1.47059;
    }
    
    .project-features h4,
    .project-tech h4 {
        font-size: 16px;
        line-height: 1.42105;
    }
    
    .project-features li {
        font-size: 13px;
        line-height: 1.47059;
    }
    
    .project-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .project-content h3 {
        font-size: 18px;
    }
    
    .project-description {
        font-size: 14px;
    }
    
    .project-features h4,
    .project-tech h4 {
        font-size: 15px;
    }
    
    .project-features li {
        font-size: 12px;
    }
}

.contact-section {
    background-color: #f5f5f7;
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 32px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item i {
    font-size: 24px;
    color: #0071e3;
    margin-top: 4px;
    width: 24px;
    text-align: center;
}

.contact-item h4 {
    font-size: 19px;
    line-height: 1.42105;
    font-weight: 600;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #86868b;
    margin: 0;
}

.social-contact {
    margin-top: 40px;
}

.social-contact h4 {
    font-size: 19px;
    line-height: 1.42105;
    font-weight: 600;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.contact-form-container {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.contact-form-container h3 {
    font-size: 32px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 500;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.022em;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.submit-btn i {
    font-size: 16px;
}

.contact-feedback {
    min-height: 22px;
    font-size: 14px;
    font-weight: 500;
    color: #20c997;
    margin-top: -4px;
}

.contact-feedback.is-error {
    color: #ff6b6b;
}

.contact-feedback.is-sending {
    color: #0071e3;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-container {
        padding: 24px;
    }
    
    .contact-info h3,
    .contact-form-container h3 {
        font-size: 28px;
        line-height: 1.125;
    }
    
    .contact-item h4 {
        font-size: 17px;
        line-height: 1.47059;
    }
    
    .contact-item p {
        font-size: 15px;
        line-height: 1.47059;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info h3,
    .contact-form-container h3 {
        font-size: 24px;
    }
    
    .contact-item h4 {
        font-size: 15px;
    }
    
    .contact-item p {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Estilos para la página de servicios */
.services-section {
    background-color: #f5f5f7;
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card.coming-soon {
    opacity: 0.8;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}

.service-icon {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.service-card.coming-soon .service-icon {
    background: linear-gradient(135deg, #86868b 0%, #a1a1a6 100%);
}

.service-content {
    padding: 40px;
}

.service-content h3 {
    font-size: 28px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.service-category {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #0071e3;
    margin-bottom: 16px;
}

.service-description {
    font-size: 18px;
    line-height: 1.42105;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 32px;
}

.service-features {
    margin-bottom: 32px;
}

.service-features h4 {
    font-size: 20px;
    line-height: 1.381;
    font-weight: 600;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    font-size: 16px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #86868b;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.service-features li:before {
    content: "✓";
    color: #0071e3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-tech {
    margin-bottom: 32px;
}

.service-tech h4 {
    font-size: 20px;
    line-height: 1.381;
    font-weight: 600;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.service-process {
    margin-bottom: 32px;
}

.service-process h4 {
    font-size: 20px;
    line-height: 1.381;
    font-weight: 600;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: #f5f5f7;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.process-step:hover {
    background-color: #e8e8ed;
    transform: translateY(-2px);
}

.step-number {
    background-color: #0071e3;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 16px;
    line-height: 1.47059;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #86868b;
    margin: 0;
}

.service-cta {
    margin-top: 32px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background-color: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.022em;
    transition: all 0.3s ease;
}

.service-link:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.service-link i {
    font-size: 18px;
}

/* Sección "Por qué elegir mis servicios" */
.why-choose-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 100px 0;
}

.why-choose-section h2 {
    color: #1d1d1f;
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 60px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.benefit-item {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.benefit-item h3 {
    font-size: 24px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.benefit-item p {
    font-size: 16px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #86868b;
    margin: 0;
}

/* Responsive para servicios */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 16px;
    }
    
    .service-content {
        padding: 24px;
    }
    
    .service-content h3 {
        font-size: 24px;
        line-height: 1.125;
    }
    
    .service-description {
        font-size: 16px;
        line-height: 1.47059;
    }
    
    .service-features h4,
    .service-tech h4,
    .service-process h4 {
        font-size: 18px;
        line-height: 1.42105;
    }
    
    .service-features li {
        font-size: 15px;
        line-height: 1.47059;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .process-step {
        padding: 16px;
    }
    
    .service-link {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .why-choose-section {
        padding: 60px 0;
    }
    
    .why-choose-section h2 {
        font-size: 32px;
        line-height: 1.125;
        margin-bottom: 40px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 16px;
    }
    
    .benefit-item {
        padding: 30px 16px;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .benefit-item h3 {
        font-size: 20px;
        line-height: 1.125;
    }
    
    .benefit-item p {
        font-size: 15px;
        line-height: 1.47059;
    }
}

@media (max-width: 480px) {
    .service-content h3 {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 15px;
    }
    
    .service-features h4,
    .service-tech h4,
    .service-process h4 {
        font-size: 16px;
    }
    
    .service-features li {
        font-size: 14px;
    }
    
    .why-choose-section h2 {
        font-size: 28px;
    }
    
    .benefit-item h3 {
        font-size: 18px;
    }
    
    .benefit-item p {
        font-size: 14px;
    }
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 12px;
    padding: 40px 20px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 18px;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.6);
}

.blog-empty i {
    font-size: 32px;
    color: rgba(102, 126, 234, 0.8);
}

.blog-admin-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(102, 126, 234, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 50;
}

.blog-admin-trigger i {
    font-size: 18px;
}

.blog-admin-trigger:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(102, 126, 234, 0.45);
}

body:not(.preba2025) .blog-admin-trigger {
    background: linear-gradient(135deg, #adb5bd, #6c757d);
    box-shadow: 0 15px 30px rgba(108, 117, 125, 0.35);
}

body:not(.preba2025) .blog-admin-trigger span {
    opacity: 0.9;
}

.blog-admin-trigger.is-error {
    animation: blogTriggerShake 0.4s ease;
    background: linear-gradient(135deg, #ff6b6b, #f06595);
    box-shadow: 0 18px 35px rgba(255, 107, 107, 0.4);
}

@keyframes blogTriggerShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

.modal-open {
    overflow: hidden;
}

.blog-admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.blog-admin-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.blog-admin-dialog {
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
    position: relative;
    transform: translateY(25px);
    transition: transform 0.3s ease;
}

.blog-admin-modal.is-open .blog-admin-dialog {
    transform: translateY(0);
}

.blog-admin-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.blog-admin-close:hover {
    background: rgba(102, 126, 234, 0.18);
    transform: rotate(90deg);
}

.blog-admin-dialog h3 {
    margin-bottom: 8px;
    font-size: 26px;
    color: #343a40;
}

.blog-admin-helper {
    margin-bottom: 24px;
    color: #6c757d;
    font-size: 15px;
}

.blog-admin-form {
    display: grid;
    gap: 18px;
}

.blog-admin-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-admin-form label {
    font-weight: 600;
    color: #343a40;
}

.blog-admin-form input,
.blog-admin-form textarea {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-admin-form input:focus,
.blog-admin-form textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.blog-admin-form small {
    color: #868e96;
    font-size: 13px;
}

.blog-admin-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.blog-admin-form .form-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
}

.blog-admin-feedback {
    min-height: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #20c997;
}

.blog-admin-feedback.is-error {
    color: #ff6b6b;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post {
    background: white;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-post h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.blog-post p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-author {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    background: rgba(102, 126, 234, 0.1);
    padding: 6px 12px;
    border-radius: 999px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* ========================================
   TERMS SECTION
   ======================================== */

.terms-section {
    background: #f8f9fa;
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.terms-section-item {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
}

.terms-section-item h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-section-item h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.terms-section-item p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 15px;
}

.terms-section-item ul {
    margin: 15px 0;
    padding-left: 20px;
}

.terms-section-item li {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 8px;
}

.terms-section-item strong {
    color: #2c3e50;
}

/* ========================================
   FOOTER LINKS
   ======================================== */

.footer-links {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    justify-content: center;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Responsive para Blog y Términos */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-image {
        height: 150px;
        font-size: 2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .terms-section-item {
        padding: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
