/* ===== INDEX.HTML - Estilos específicos ===== */

/* Hero Section */
.hero {
    background: var(--color-light);
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::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"><circle cx="10" cy="10" r="1.5" fill="%238B5A8E" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 1000px;
}

.hero-logo {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 8px rgba(61, 38, 69, 0.2));
}

.hero h1 {
    font-size: 2.6rem;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-dark);
    margin-bottom: 1.25rem;
}

/* Sections */
section {
    padding: 3.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}

/* Animación opcional para navegadores con JS */
section.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.1rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h3 {
    color: var(--color-secondary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.65;
}

.about-image {
    width: 100%;
    height: 280px;
    background: var(--gradient-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(61, 38, 69, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(61, 38, 69, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-primary);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(61, 38, 69, 0.2);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    color: var(--color-secondary);
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--color-dark);
    line-height: 1.6;
}

/* Content Section */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.content-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(61, 38, 69, 0.1);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
}

.content-card-header {
    background: var(--gradient-secondary);
    padding: 1.25rem;
    color: white;
    text-align: center;
}

.content-card-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.content-card-body {
    padding: 1.1rem;
}

.content-card-body ul {
    list-style: none;
    padding-left: 0;
}

.content-card-body li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-dark);
}

.content-card-body li::before {
    content: '🔬';
    position: absolute;
    left: 0;
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.7);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 20px 10px rgba(245, 200, 66, 0);
    }
}

.hero-logo {
    animation: float 3s ease-in-out infinite;
}

/* Logos de contacto con animación pulse */
.contact-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s;
    animation: pulse 4s ease-in-out infinite;
    cursor: pointer;
}

.contact-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-logo:hover {
    animation: none;
    transform: scale(1.15);
    box-shadow: 0 0 25px 5px rgba(245, 200, 66, 0.6);
}

/* Responsive - Index */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-logo {
        width: 170px;
        height: 170px;
    }

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

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

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.92rem;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    section {
        padding: 2rem 1rem;
    }
}
