/*
* CYAN Soluciones - Estilos principales
* Tabla de contenidos:
* 1. Reset y configuración base
* 2. Animaciones y utilidades
* 3. Tipografía y textos
* 4. Layout y contenedores
* 5. Componentes
*   5.1 Botones
*   5.2 Tarjetas
*   5.3 Formularios
* 6. Secciones específicas
*   6.1 Header y navegación
*   6.2 Inicio
*   6.3 About y Nosotros
*   6.4 Servicios
*   6.5 Contacto
* 7. Footer
* 8. Media queries
*/

/* 1. Reset y configuración base */
:root {
    --color-primary: #01e7ae;
    --color-secondary: #00b3ff;
    --color-dark: #222;
    --color-gray: #444;
    --color-light: #f7f7f7;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --shadow-sm: 0 2px 8px rgba(1,231,174,0.08);
    --shadow-md: 0 8px 24px rgba(1,231,174,0.15);
    --shadow-lg: 0 12px 32px rgba(1,231,174,0.25);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --transition-base: all 0.3s ease;
    --max-width-container: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Inter', 'Quicksand', sans-serif;
    background: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
}

/* 2. Animaciones y utilidades */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-left { animation: fadeInLeft 0.6s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.6s ease forwards; }
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }

.graddient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 3. Tipografía y textos */
h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-family: 'Outfit', 'Inter', 'Quicksand', sans-serif;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* 4. Layout y contenedores */
section {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
}

.container, .seccion_contenido {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* 5. Componentes */
/* 5.1 Botones */
.btn_wa, .btn_submit {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.9em 2em;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1.2rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn_wa:hover, .btn_submit:hover,
.btn_wa:focus, .btn_submit:focus {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    transform: scale(1.04);
}

/* 5.2 Tarjetas */
.servicio_card {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    max-width: 350px;
    min-width: 260px;
    min-height: 320px;
    flex: 1 1 260px;
    margin: 0;
    padding: 0;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    transition: opacity 0.3s ease;
    background: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.servicio_card h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

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

.servicio_card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.servicio_card:hover .card-content {
    opacity: 0;
}

.servicio_card:hover .card-image {
    opacity: 1;
}

/* 5.3 Formularios */
#contact_form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
}

#contact_form .card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact_form .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.98);
}

#contact_form label {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

#contact_form input, #contact_form textarea {
    border: 2px solid rgba(1, 231, 174, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 1em;
    font-size: 1.1rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition-base);
}

#contact_form input:focus, #contact_form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(1, 231, 174, 0.1);
    background: white;
}

#contact_form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-status {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.form-status.success {
    background: rgba(1, 231, 174, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(1, 231, 174, 0.2);
}

.form-status.error {
    background: rgba(255, 76, 76, 0.1);
    color: #ff4c4c;
    border: 1px solid rgba(255, 76, 76, 0.2);
}

.form-status.info {
    background: rgba(0, 179, 255, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(0, 179, 255, 0.2);
}

/* 6. Secciones específicas */
/* 6.1 Inicio */
#inicio {
    background: linear-gradient(135deg, #0775b1 0%, #007fd3 50%, #7df5e7 100%);
    position: relative;
    overflow: hidden;
}

#inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0,179,255,0.08) 0%, rgba(1,231,174,0.08) 100%);
    pointer-events: none;
}

#inicio .seccion_contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    min-height: 80vh;
}

#inicio .seccion_contenido > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

#inicio .seccion_contenido > div:first-child {
    text-align: center;
    max-width: 600px;
}

#logo {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

#slogan {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 2.5rem;
    line-height: 1.3;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#inicio .seccion_contenido > div:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

#inicio img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    filter: drop-shadow(0 20px 40px rgba(0,179,255,0.35)) 
            drop-shadow(0 8px 25px rgba(1,231,174,0.25));
    object-fit: contain;
    transition: all 0.5s ease;
    transform: translateY(0);
}

#inicio img:hover {
    transform: translateY(-20px) scale(1.02);
    filter: drop-shadow(0 30px 60px rgba(0,179,255,0.40)) 
            drop-shadow(0 15px 35px rgba(1,231,174,0.30));
}

/* 6.2 About y Nosotros */
#about .seccion_contenido, #nosotros .seccion_contenido {
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 6rem;
}

#about h1, #nosotros h1 {
    width: 100%;
    text-align: center;
    color: var(--color-primary);
    font-size: 2.8rem;
    margin: 2rem 0 1.5rem;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

#about h1::after, #nosotros h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

#about h1:hover::after, #nosotros h1:hover::after {
    width: 100px;
}

#about .contenido-principal, #nosotros .contenido-principal {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    justify-content: space-between;
}

#about img, #nosotros img {
    max-width: 100%;
    width: auto;
    max-height: 45vh;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0,179,255,0.20));
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(0);
}

#about img:hover, #nosotros img:hover {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 20px 40px rgba(0,179,255,0.25)) 
            drop-shadow(0 10px 20px rgba(1,231,174,0.2));
}

#about .texto, #nosotros .texto {
    flex: 0 0 60%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(1, 231, 174, 0.1);
    transition: var(--transition-base);
}

#about .texto:hover, #nosotros .texto:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(1, 231, 174, 0.2);
}

#about p, #nosotros p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    text-align: justify;
    transition: color 0.3s ease;
}

/* 6.3 Servicios */
#servicios {
    background: linear-gradient(135deg, rgba(1, 231, 174, 0.03) 0%, rgba(0, 179, 255, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

#servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(1, 231, 174, 0.04) 0%, rgba(0, 179, 255, 0.04) 100%);
    pointer-events: none;
}

#servicios .container {
    position: relative;
    z-index: 1;
    padding: 6rem 1rem;
}

#servicios h1 {
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.servicios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

/* 6.4 Contacto */
#contacto {
    background: linear-gradient(135deg, #007fd3 0%, #00b3ff 100%);
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(1,231,174,0.15) 0%, rgba(0,179,255,0.1) 100%);
    pointer-events: none;
}

#contacto_contenido {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 4rem 1rem;
    position: relative;
    z-index: 1;
}

#contacto_contenido .contacto-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    width: 100%;
    min-height: 500px;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    padding: 2rem;
}

.logo-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(255,255,255,0.3));
    transition: var(--transition-base);
    transform: translateY(0);
}

.logo-container img:hover {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 20px 40px rgba(255,255,255,0.4));
}

#contacto h1 {
    color: var(--color-primary);
    margin-bottom: 3rem;
    font-size: 2.4rem;
    width: 100%;
    text-align: center;
}

/* 7. Footer */
footer {
    background: #0565a5;
    color: #fff;
    text-align: center;
    padding: 1.2rem 0;
    font-size: 1rem;
}

/* 8. Media queries */
@media (max-width: 900px) {
    #inicio .seccion_contenido {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
        padding: 2rem 0.5rem;
    }
    
    #inicio .seccion_contenido > div:first-child,
    #inicio .seccion_contenido > div:last-child {
        flex: 1 1 100%;
        align-items: center;
        text-align: center;
    }
    
    #logo {
        font-size: 2rem;
    }
    
    #inicio img {
        max-width: 90vw;
        border-radius: var(--border-radius-md);
    }
}

@media (max-width: 768px) {
    section {
        min-height: auto;
        padding: 0;
        display: block;
    }
    
    .container, .seccion_contenido, #contacto_contenido, .contacto-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    #about .contenido-principal,
    #nosotros .contenido-principal {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        text-align: center;
    }
    
    #about .contenido-principal > div:first-child,
    #about .texto,
    #nosotros .contenido-principal > div:first-child,
    #nosotros .texto {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    #about img,
    #nosotros img {
        max-height: 35vh;
        margin: 0 auto;
        width: auto;
    }
    
    #about p,
    #nosotros p {
        font-size: 1.1rem;
        text-align: center;
        max-width: 90%;
        margin: 0 auto 1.5rem;
        padding: 0;
    }
    
    #about h1,
    #nosotros h1 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .servicios-grid {
        flex-direction: column;
        gap: 1rem;
    }
    
    .servicio_card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
    }
    
    #contact_form {
        max-width: 100%;
    }
}
