/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2D3748;
    background-color: #F7FAFC;
    overflow-x: hidden;
}

/* Animaciones globales */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Services Section - Modernizado */
.services-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23007BFF" fill-opacity="0.03" width="20" height="20" x="0" y="0"/></svg>');
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #2D3748;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007BFF, #00c69f);
    border-radius: 2px;
}

.section-header p {
    color: #718096;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 198, 159, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #007BFF;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 15px;
    transition: color 0.3s ease;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #007BFF, #00c69f);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 80px;
}

.service-card p {
    color: #718096;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.service-link {
    color: #007BFF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007BFF, #00c69f);
    transition: width 0.3s ease;
}

.service-link:hover {
    color: #00c69f;
}

.service-link:hover::after {
    width: 100%;
}

/* WhatsApp Bubble - Modernizado */
.whatsapp-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-bubble:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    animation: none;
}

.whatsapp-bubble svg {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.whatsapp-bubble:hover svg {
    transform: rotate(10deg);
}

.whatsapp-bubble span {
    font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .whatsapp-bubble {
        padding: 12px 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-bubble span {
        font-size: 0.9rem;
    }
}

/* Mantener los estilos originales de la sección de contacto */
.contact-section {
    background-color: #ffffff;
    padding: 100px 20px;
    padding-bottom: 50px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-wrapper {
    display: flex;
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-info {
    flex: 0 0 40%;
    background: linear-gradient(to right, #0056b3, #007BFF);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-header {
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    background-color: rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    stroke: white;
    width: 30px;
    height: 30px;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-text p {
    opacity: 0.7;
}

.contact-form-section {
    flex: 0 0 60%;
    padding: 50px 40px;
    background: linear-gradient(to left, #0056b3, #007BFF);
    color: white;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modern-contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full-width {
    width: 100%;
}

.modern-contact-form label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}

.modern-contact-form input,
.modern-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #3167ad;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modern-contact-form input:focus,
.modern-contact-form textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.modern-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #459fff, #00c69f);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 0, 255, 0.3);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
    z-index: 1000;
}

.notification.success {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.notification.error {
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* Responsive Design para la sección de contacto */
@media screen and (max-width: 1024px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-section {
        flex: 0 0 100%;
        padding: 40px 20px;
    }

    .form-row {
        flex-direction: column;
    }
}

/* Estilos para los botones de la sección hero */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Permitir que los botones se envuelvan en pantallas pequeñas */
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center; /* Centrar el texto del botón */
    white-space: nowrap; /* Evitar que el texto se divida en múltiples líneas */
}

.btn-primary {
    background-color: white;
    color: #007BFF;
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Ajustes responsivos para los botones */
@media screen and (max-width: 768px) {
    .hero-cta {
        flex-direction: column; /* Apilar botones verticalmente en móviles */
        width: 100%; /* Asegurar que ocupe todo el ancho disponible */
        gap: 15px; /* Reducir el espacio entre botones */
    }
    
    .btn {
        width: 100%; /* Hacer que los botones ocupen todo el ancho disponible */
        max-width: 250px; /* Limitar el ancho máximo */
        padding: 12px 20px; /* Reducir el padding horizontal */
        font-size: 0.9rem; /* Reducir ligeramente el tamaño de fuente */
    }
}

@media screen and (max-width: 480px) {
    .btn {
        max-width: 200px; /* Reducir aún más el ancho máximo para pantallas muy pequeñas */
        padding: 10px 15px; /* Reducir aún más el padding */
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .whatsapp-bubble {
        padding: 12px 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-bubble span {
        font-size: 0.9rem;
    }
}