﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

/* === VARIABLES DE COLOR === */
:root {
    --color-turquesa: #27BDAF;
    --color-zafiro: #3535A0;
    --color-menta: #B2D6C8;
    --color-lavanda: #B9A9C9;
    --color-azul-marino: #23354C;
    --color-blanco: #ECECEC;
}

/* === RESETEO GENERAL === */
* {
    outline: none !important;
    box-shadow: none !important;
}

html, body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--color-azul-marino);
    background-color: var(--color-blanco);
    margin: 0;
    padding: 0;
    height: 100%;
}

/* === WRAPPER PRINCIPAL PARA MANTENER EL FOOTER ABAJO === */
.page-wrapper {
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px; /* altura del footer */
    box-sizing: border-box;
}

/* =========================== NAVBAR =========================== */
.navbar {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
}

    .navbar .nav-link {
        font-size: 18px;
        color: var(--color-zafiro) !important;
        font-weight: 500;
        transition: color 0.3s;
    }

        .navbar .nav-link:hover {
            color: var(--color-turquesa) !important;
        }

.nav-auth-buttons {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1rem;
}

/* =========================== HERO SECTION =========================== */
.hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--color-turquesa), var(--color-zafiro));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-inner {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

    .hero-inner h1 {
        font-size: 3rem;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .hero-inner p {
        font-size: 1.3rem;
        margin-bottom: 30px;
        color: #f0f0f0;
    }

    .hero-inner .btn {
        font-size: 1.1rem;
        padding: 12px 24px;
        border-radius: 6px;
        font-weight: bold;
        transition: all 0.3s ease-in-out;
    }

.btn-primary {
    background-color: white;
    color: var(--color-zafiro);
    border: none;
}

    .btn-primary:hover {
        background-color: var(--color-menta);
        color: var(--color-azul-marino);
    }

.btn-outline-primary {
    border: 2px solid white;
    color: white;
}

    .btn-outline-primary:hover {
        background-color: white;
        color: var(--color-zafiro);
    }

/* =========================== 
        FOOTER 
 =========================== */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: white;
    color: #555;
    border-top: 1px solid #ddd;
    text-align: center;
    line-height: 70px;
    font-size: 14px;
}



/* =========================== 
       NOSOTROS
=========================== */

.info-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-zafiro);
    margin-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-azul-marino);
    margin-bottom: 40px;
    text-align: center;
}

/* Secciones */
.info-section {
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Títulos */
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-turquesa);
    margin-bottom: 15px;
}

.info-text {
    font-size: 1.1rem;
    color: #555;
    text-align: justify;
}

/* Lista */
.info-list {
    padding-left: 20px;
}

    .info-list li {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

/* Equipo humano */
.team-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
}

.team-card {
    flex: 1 1 300px; /* flexible, pero mínimo de 300px */
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.team-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-zafiro);
    margin-bottom: 5px;
}

.team-role {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-turquesa);
    margin-bottom: 15px;
}

.team-description {
    font-size: 0.95rem;
    color: #444;
}



/* =======================
    SERVICIOS
   ======================= */

.services-title {
    margin-top: 30px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-zafiro);
    margin-bottom: 10px;
}

.services-description {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

    .service-card:hover {
        transform: scale(1.05);
    }

.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.3s ease-in-out;
    }

.service-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    color: #232323; 
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .overlay ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }

        .overlay ul li {
            font-size: 16px;
            color: #232323;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .overlay ul li i {
                margin-right: 5px;
                color: #2a9d8f;
            }

.image-container:hover .overlay {
    opacity: 1;
}

.image-container:hover img {
    opacity: 0.3;
}



/* =======================
         CONTACTO
   ======================= */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-zafiro);
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.contact-card,
.form-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: left;
}

    .contact-card h3,
    .form-card h3 {
        color: var(--color-zafiro);
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
    }

    .contact-card h5,
    .form-card h5 {
        color: var(--color-turquesa);
        font-weight: bold;
    }

    .contact-card p,
    .form-card p {
        color: var(--color-azul-marino);
        font-size: 1rem;
    }

/* Íconos sociales */
.social-icon {
    font-size: 32px;
    color: var(--color-turquesa);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(39, 189, 175, 0.1);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

    .social-icon:hover {
        background: var(--color-turquesa);
        color: white;
        transform: rotate(355deg) scale(1.15);
    }

/* Inputs */
.form-card input,
.form-card textarea {
    font-size: 1rem;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
}

.form-card .form-label {
    font-weight: 500;
    color: var(--color-zafiro);
}

.btn-primary {
    background-color: var(--color-turquesa);
    border: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: var(--color-zafiro);
        color: white;
    }

/* Responsive ajustes */
@media (max-width: 768px) {
    .contact-card,
    .form-card {
        margin-bottom: 30px;
    }
}


/* === BLOG SECTION === */
.blog-list-section {
    background-color: var(--color-blanco);
    padding: 60px 0;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 600;
    color: var(--color-zafiro);
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

/* Card horizontal */
.blog-horizontal-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

    .blog-horizontal-card:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

/* Imagen lateral */
.blog-image-side {
    width: 100%;
    max-height: 240px;
    overflow: hidden;
    position: relative;
}

    .blog-image-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

@media (min-width: 768px) {
    .blog-horizontal-card {
        flex-direction: row;
    }

    .blog-image-side {
        max-width: 300px;
        max-height: 100%;
    }
}

/* === BLOG DETALLE PRINCIPAL === */

.blog-detail-section {
    background-color: var(--color-blanco);
    padding: 60px 0;
}

.blog-detail-card {
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-detail-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-zafiro);
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.blog-detail-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
    text-align: justify;
}

    .blog-detail-content h2,
    .blog-detail-content h3 {
        margin-top: 1.5rem;
        color: var(--color-zafiro);
    }

    .blog-detail-content p {
        margin-bottom: 1rem;
    }

.blog-back-link {
    font-size: 0.95rem;
    color: var(--color-turquesa);
    text-decoration: underline;
    transition: color 0.2s ease;
}

    .blog-back-link:hover {
        color: var(--color-zafiro);
    }


/* === BLOG SUGERIDOS: TE PODRÍA INTERESAR === */

.related-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.related-blog-card {
    width: 260px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

    .related-blog-card:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

.related-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

/* === ESTILO DE TITULOS, LINKS Y TEXTOS GENERALES === */

.blog-title {
    font-size: 1.3rem;
    color: var(--color-zafiro);
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-summary {ww
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.blog-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-turquesa);
    text-decoration: underline;
    transition: color 0.2s ease;
}

    .blog-link:hover {
        color: var(--color-zafiro);
    }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-inner h1 {
        font-size: 1.8rem;
    }

    .hero-inner p {
        font-size: 1rem;
    }

    .hero-inner .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
    }

    .footer {
        font-size: 12px;
        line-height: normal;
        padding: 20px 10px;
        height: auto;
    }

    .team-section {
        flex-direction: column;
    }

    .info-section {
        padding: 20px;
    }

    .team-img {
        width: 160px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .team-img {
        width: 140px;
    }

    .team-card {
        padding: 20px 15px;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
