@charset "utf-8";
/* CSS Document */

/* ========================================================
   1. CARGA DE TIPOGRAFÍAS LOCALES (FONTS)
   ======================================================== */
@font-face {
    font-family: 'Lisboa';
    src: url('../fonts/Lisboa.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lisboa';
    src: url('../fonts/Lisboa-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Lisboa';
    src: url('../fonts/Lisboa-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'LisboaBook';
    src: url('../fonts/Lisboa-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* ========================================================
   2. ESTILOS GENERALES
   ======================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'LisboaBook', Helvetica, Arial, sans-serif;
    background-color: #F8F8F7; 
    color: #333333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================================
   3. NAVBAR
   ======================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background-color: #283372; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
}

.navbar__logo img {
    height: 45px; 
    width: auto;
    display: block;
}

.navbar__menu ul {
    display: flex;
    gap: 1.8rem; 
    align-items: center;
}

.navbar__menu a {
    color: #ffffff;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
    padding-bottom: 4px;
}

.navbar__menu a:hover {
    color: #eeb814; 
}

.navbar__menu a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: #eeb814;
    transition: width 0.3s ease;
}

.navbar__menu a:hover::after { width: 100%; }

.navbar__cta {
    background-color: #eeb814; 
    color: #283372 !important; 
    padding: 0.55rem 1.2rem !important;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.navbar__cta:hover {
    background-color: #d6a412;
    transform: translateY(-1px);
}

.navbar__cta::after { display: none; }

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.navbar__toggle span {
    width: 26px; height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ========================================================
   4. PORTADA (HERO)
   ======================================================== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    background: linear-gradient(135deg, #1d1d1b 0%, #283372 100%);
    color: #ffffff;
    overflow: hidden; 
}

.hero__content { 
    max-width: 900px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.hero__main-title {
    font-family: 'LisboaBook', Helvetica, Arial, sans-serif;
    font-size: 2.6rem; 
    font-weight: 400; 
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1.5rem; 
    position: relative;
    padding-bottom: 15px; 
    display: inline-block; 
    
    animation: revelarCortina 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    clip-path: inset(0 100% 0 0); 
}

.hero__main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; 
    height: 3px;
    background-color: #eeb814; 
}

.hero__subtitle {
    font-family: 'Lisboa', Georgia, serif; 
    font-size: 2rem; 
    font-weight: 700; 
    font-style: italic; 
    line-height: 1.4;
    margin-bottom: 3rem;
    color: #eeb814; 
    max-width: 850px; 
    
    animation: revelarCortina 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.5s forwards;
    clip-path: inset(0 100% 0 0); 
}

.hero .btn--primary {
    animation: fadeUp 0.8s ease-out 1.2s forwards;
    opacity: 0; 
}

@keyframes revelarCortina {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes fadeUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ========================================================
   5. SECCIONES GENERALES
   ======================================================== */
.section {
    padding: 4rem 0; 
    background-color: #F8F8F7; 
}

.section--alt {
    background-color: #ffffff; 
    padding-bottom: 3rem; 
}

.section__title {
    font-family: 'Lisboa', Georgia, serif;
    font-size: 2.5rem;
    color: #283372;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section__title::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 70px; height: 3px;
    background: #eeb814; 
    border-radius: 2px;
}

.section__text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #666666;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ========================================================
   5.1 ACERCA DE NOSOTROS
   ======================================================== */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem; 
    margin-top: 3rem;
    max-width: 1000px; 
    margin-left: auto;
    margin-right: auto;
}

.about-text {
    width: 60%; 
    padding-left: 1rem;
}

.about-text .hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555555;
    margin-bottom: 1.2rem;
    text-align: justify; 
}

.about-image {
    width: 40%; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid #eeb814; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden; 
    background-color: #EAECEE; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center top; 
    display: block;
}

.photo-wrapper:hover {
    transform: scale(1.03); 
    box-shadow: 0 15px 35px rgba(238, 184, 20, 0.3); 
    border-color: #283372; 
}

/* ========================================================
   6. TARJETAS DE SERVICIOS
   ======================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 31.333% 31.333% 31.333%;
    gap: 2rem; 
    margin-bottom: 0; 
}

.service-card {
    background-color: #F8F8F7; 
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); 
    border-top: 4px solid #283372; 
    border-left: 1px solid rgba(0,0,0,0.03);
    border-right: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); 
    border-top-color: #eeb814; 
    background-color: #ffffff; 
}

.service-card h3 {
    font-family: 'Lisboa', Georgia, serif;
    font-weight: 700;
    color: #283372;
    font-size: 1.3rem; 
    margin-bottom: 0.8rem;
    line-height: 1.3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    font-size: 1.5rem;
    color: #eeb814; 
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-icon {
    transform: scale(1.15) translateX(3px); 
    color: #283372; 
}

.service-card p {
    color: #666666;
    font-size: 0.95rem; 
    line-height: 1.6;
}

/* ========================================================
   7. CONTACTO
   ======================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem; 
}

/* Contenedor de la columna izquierda */
.contact-left-col {
    display: flex;
    flex-direction: column; 
    gap: 2rem; 
}

.contact-info-box {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid #eeb814; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-info-box h3 {
    font-family: 'Lisboa', Georgia, serif; 
    font-weight: 700;
    color: #283372;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.contact-info-box p {
    margin-bottom: 0.8rem;
    color: #555555;
    font-size: 1.05rem;
}

.contact-info-box strong { 
    color: #283372; 
}

/* Logo Flotante */
.contact-logo-floating {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 1rem;
}

.contact-logo-floating img {
    width: 100%;
    max-width: 250px; 
    height: auto;
    opacity: 0.9; 
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.contact-logo-floating img:hover {
    transform: scale(1.05) translateY(-5px); 
    opacity: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #283372;
}

.contact-form input,
.contact-form textarea {
    font-family: 'LisboaBook', Helvetica, Arial, sans-serif;
    padding: 0.9rem 1rem;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background-color: #F8F8F7;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #eeb814;
    box-shadow: 0 0 0 3px rgba(238, 184, 20, 0.2);
    background-color: #ffffff;
}

/* ========================================================
   8. BOTONES
   ======================================================== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Lisboa', Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background-color: #eeb814; 
    color: #283372; 
    border: 2px solid #eeb814;
    box-shadow: none; 
}

.btn--primary:hover {
    background-color: transparent; 
    color: #eeb814; 
    transform: translateY(-2px);
}

.contact-form .btn--primary:hover {
    background-color: #283372;
    color: #ffffff;
    border-color: #283372;
}

/* ========================================================
   9. FOOTER
   ======================================================== */
.footer {
    background-color: #1d1d1b;
    color: #99958e;
    padding: 3rem 0 2rem;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer__social {
    display: flex;
    gap: 1.5rem;
}

.footer__social a {
    color: #eeb814; 
    font-size: 1.5rem; 
    transition: color 0.25s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer__social a:hover {
    color: #ffffff; 
    transform: translateY(-4px); 
}

.footer__legal {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 1rem;
}

/* ========================================================
   10. RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 48% 48%; 
    }
}

@media (max-width: 768px) {
    .navbar__toggle { display: flex; }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background-color: #283372;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .navbar__menu.open { max-height: 320px; }

    .navbar__menu ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .navbar__menu li { width: 100%; text-align: center; }

    .navbar__menu a { display: block; padding: 0.9rem 1rem; }

    .navbar__cta { margin: 0.5rem auto; display: inline-block; }

    .contact-grid {
        grid-template-columns: 100%;
        gap: 2rem;
    }

    .about-section {
        flex-direction: column-reverse; 
        gap: 2rem;
        text-align: center;
    }
    
    .about-text {
        width: 100%;
    }
    
    .about-text .hero-description {
        text-align: center; 
    }
    
    .about-image {
        width: 100%;
    }
    
    .photo-wrapper {
        width: 220px;
        height: 220px;
    }

    .services-grid {
        grid-template-columns: 100%; 
    }

    .hero { 
        min-height: 60vh; 
        padding-top: 6rem; 
    }
    
    .hero__main-title {
        font-size: 1.8rem; 
    }
    
    .hero__subtitle {
        font-size: 1.3rem;
    }

    /* Ajuste del logo en móvil */
    .contact-logo-floating {
        order: -1; 
        margin-bottom: 1rem;
    }
    .contact-logo-floating img {
        max-width: 180px;
    }
}