/* ===================================
   ASINKA - ESTILOS PRINCIPALES
   =================================== */

/* Variables de color */
:root {
    --blue-primary: #2563eb;
    --blue-light: #3b82f6;
    --gray: #6b7280;
    --navy: #1e3a8a;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

.logo:hover .logo-image {
    transform: scale(1.1) rotate(-3deg);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
}

.logo-text {
    background: linear-gradient(90deg, var(--blue-primary) 0%, var(--gray) 30%, var(--gray) 70%, var(--navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===================================
   CAROUSEL
   =================================== */
.carousel-container {
    margin-top: 80px;
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: var(--dark);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
}

.carousel-slide:nth-child(4) {
    background: linear-gradient(135deg, #1e1b4b 0%, #3b82f6 50%, #60a5fa 100%);
}

.carousel-content {
    max-width: 1000px;
    text-align: center;
    color: var(--white);
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.carousel-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--white);
    color: var(--blue-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--white);
    transform: scale(1.3);
    border-color: var(--blue-primary);
}

.indicator:hover {
    background: rgba(255,255,255,0.8);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 1.5rem;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

/* ===================================
   SECCIONES GENERALES
   =================================== */
section {
    padding: 5rem 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: var(--light);
}

.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.about-intro h3 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-intro p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-left: 4px solid var(--blue-primary);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--blue-primary);
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.philosophy-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.philosophy-item h4 {
    color: var(--blue-primary);
    margin-bottom: 0.5rem;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-detail-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-detail-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-detail-card h3 i {
    color: var(--blue-primary);
}

.about-detail-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--light);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--blue-primary), var(--navy));
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

.service-card:hover {
    border-color: var(--blue-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.service-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq {
    background: var(--light);
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

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

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--navy);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--blue-primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--gray);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-details h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray);
    font-size: 1.1rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
}

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

/* Honeypot - Campo oculto anti-spam */
.honeypot {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

.btn-submit {
    background: var(--blue-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-submit:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 1.5rem;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: var(--error);
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--blue-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--blue-light);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ===================================
   ANIMACIONES
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .carousel-container {
        height: 550px;
    }

    .carousel-content h2 {
        font-size: 2.2rem;
    }

    .carousel-content p {
        font-size: 1.1rem;
    }

    .carousel-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .carousel-arrow.prev {
        left: 15px;
    }

    .carousel-arrow.next {
        right: 15px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .about-details {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .carousel-content h2 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .service-card,
    .about-detail-card,
    .value-card {
        padding: 1.5rem;
    }
}