/* Variables CSS */
:root {
    --primary-color: #08addffc;
    --secondary-color: #1a1a1a;
    --accent-color: #4A90A8;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #0066cc);
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #3A7A8F);
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: #08addffc;
}

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

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-img img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-img img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Servicios Principales */
.servicios-principales {
    padding: 100px 0;
    backdrop-filter: blur(10px);
}

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

.servicio-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.servicio-card:hover::before {
    transform: scaleX(1);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.servicio-icon i {
    font-size: 2rem;
    color: var(--white);
}

.servicio-card:hover .servicio-icon {
    transform: scale(1.1);
}

.servicio-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.servicio-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.servicio-card ul {
    list-style: none;
    text-align: left;
}

.servicio-card ul li {
    padding: 8px 0;
    color: var(--light-text);
    position: relative;
    padding-left: 20px;
}

.servicio-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Proceso Section */
.proceso-section {
    padding: 100px 0;
}

.proceso-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.proceso-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(8, 173, 223, 0.3);
}

.proceso-step {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    min-height: 120px;
}

.proceso-step:last-child {
    margin-bottom: 0;
}

.proceso-step:nth-child(odd) {
    flex-direction: row;
}

.proceso-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow);
    position: relative;
    flex-shrink: 0;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(8, 173, 223, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 2s infinite;
}

.step-content {
    flex: 1;
    padding: 0 60px;
    text-align: center;
    max-width: 400px;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.step-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Animación de pulso para los números */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
}

/* Especialidades Section */
.especialidades-section {
    padding: 100px 0;
    background: var(--light-gray);
}

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

.especialidad-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.especialidad-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.especialidad-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.especialidad-content {
    padding: 30px;
}

.especialidad-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.especialidad-content p {
    color: var(--light-text);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn1, .btn2 {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn1 {
    background: var(--white);
    color: var(--primary-color);
}

.btn1:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn2 {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn2:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .proceso-timeline {
        max-width: 800px;
    }
    
    .step-content {
        padding: 0 40px;
        max-width: 350px;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .proceso-timeline::before {
        left: 30px;
    }
    
    .proceso-step {
        flex-direction: row !important;
        text-align: left;
        margin-bottom: 60px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
        margin-right: 20px;
    }
    
    .step-number::before {
        width: 80px;
        height: 80px;
    }
    
    .step-content {
        padding-left: 20px;
        padding-right: 0;
        text-align: left;
        max-width: none;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .step-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn1, .btn2 {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .servicio-card {
        padding: 30px 20px;
    }
    
    .especialidad-content {
        padding: 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .proceso-step {
        margin-bottom: 40px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .step-number::before {
        width: 70px;
        height: 70px;
    }
    
    .step-content {
        padding-left: 15px;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
}

/* Animaciones */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Efectos hover adicionales */
.servicio-card:hover .servicio-icon {
    background: var(--gradient-accent);
}

.step-number:hover {
    transform: scale(1.1);
    background: var(--gradient-accent);
    box-shadow: 0 8px 25px rgba(8, 173, 223, 0.4);
}

.step-number:hover::before {
    animation: pulse 1s infinite;
}

.proceso-step:hover .step-content h3 {
    color: var(--accent-color);
    transition: var(--transition);
}

.proceso-step:hover .step-content p {
    color: rgba(255, 255, 255, 1);
    transition: var(--transition);
}

/* Efectos adicionales para desktop */
@media (min-width: 769px) {
    .proceso-step {
        transition: var(--transition);
    }
    
    .proceso-step:hover {
        transform: translateY(-5px);
    }
    
    .step-content {
        transition: var(--transition);
    }
    
    .proceso-step:hover .step-content {
        transform: scale(1.02);
    }
    
    /* Línea de conexión entre pasos */
    .proceso-step::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 2px;
        background: var(--gradient-primary);
        transform: translate(-50%, -50%);
        z-index: 1;
    }
    
    .proceso-step:nth-child(odd)::after {
        left: calc(50% + 50px);
    }
    
    .proceso-step:nth-child(even)::after {
        left: calc(50% - 50px);
    }
    
    .proceso-step:last-child::after {
        display: none;
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
} 