@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&family=Poppins:wght@500;700&display=swap');

:root {
    --primary-color: #003366; /* Azul oscuro del logo */
    --secondary-color: #D4AF37; /* Dorado/Amarillo del logo */
    --dark-color: #1a1a1a;
    --light-color: #f4f4f4;
    --font-family-base: 'Roboto', sans-serif;
    --font-family-headings: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    background: #fff;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { height: 50px; }
.logo-container { display: flex; align-items: center; }
.logo-text { text-decoration: none; color: var(--dark-color); line-height: 1.2; margin-left: 10px; }

.main-nav { display: none; } /* Oculto por defecto, visible en escritorio */
@media (min-width: 769px) { .main-nav { display: block; } }

.main-nav a {
    color: var(--dark-color); text-decoration: none; margin: 0 1rem;
    font-weight: bold; font-family: var(--font-family-headings);
    position: relative; transition: color 0.3s;
}

.main-nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    display: block; margin-top: 5px; right: 0;
    background: var(--secondary-color); transition: width 0.3s ease;
}

.main-nav a:hover::after { width: 100%; left: 0; }
.main-nav a:hover { color: var(--primary-color); }

.mobile-menu-toggle {
    display: block; background: none; border: none; font-size: 1.8rem;
    cursor: pointer; z-index: 1001;
}
@media (min-width: 769px) { .mobile-menu-toggle { display: none; } }

.mobile-nav {
    position: fixed; top: 0; left: -100%;
    width: 70%; height: 100vh;
    background: var(--primary-color);
    z-index: 1000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: left 0.4s ease-in-out;
}
.mobile-nav.is-open { left: 0; }
.mobile-nav a {
    color: #fff; text-decoration: none; font-size: 1.5rem;
    margin: 1.5rem 0; font-family: var(--font-family-headings);
}

/* --- Hero Section --- */
.hero {
    height: 100vh; position: relative; color: #fff; display: flex;
    align-items: center; justify-content: center; text-align: center;
    background: url('Imagenes/Clio.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 25, 51, 0.7);
}

.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 3.5rem; font-family: var(--font-family-headings); margin-bottom: 1rem; }
.hero p { font-size: 1.5rem; margin-bottom: 2rem; }

.btn {
    display: inline-block; padding: 0.8rem 2rem; text-decoration: none;
    border-radius: 50px; font-weight: bold; font-family: var(--font-family-headings);
    transition: transform 0.3s, box-shadow 0.3s; border: none; cursor: pointer;
}
.btn-primary { background: var(--secondary-color); color: var(--dark-color); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }

/* --- General Section Styling --- */
section { padding: 6rem 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; font-family: var(--font-family-headings); color: var(--primary-color); }

/* --- Services Section --- */
.services { background: var(--light-color); }
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background: #fff; padding: 2.5rem 2rem; border-radius: 10px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.card-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1.5rem; }
.card h3 { font-family: var(--font-family-headings); font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color); }

/* --- About Us Section --- */
.about-us .container {
    display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 992px) {
    .about-us .container { grid-template-columns: 2fr 1fr; }
}

.about-image { display: none; } /* Oculto en movil */
@media (min-width: 992px) {
    .about-image { display: flex; justify-content: center; align-items: center; }
}
.about-image img { max-width: 60%; height: auto; opacity: 0.8; }
.about-content p { margin-bottom: 1.5rem; }
.stats-container { padding-top: 2rem; }
.stats { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; }
.stat { padding: 1rem; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: var(--primary-color); font-family: var(--font-family-headings); }
.stat-label { display: block; color: #666; }

/* --- Contact Section --- */
.contact { background: var(--light-color); }
.contact-wrapper { display: grid; grid-template-columns: 1fr; gap: 3rem; background: #fff; padding: 3rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
@media (min-width: 992px) { .contact-wrapper { grid-template-columns: 1fr 1fr; } }
.contact-info h3 { font-size: 1.8rem; font-family: var(--font-family-headings); color: var(--primary-color); margin-bottom: 1rem; }
.contact-info ul { list-style: none; margin-top: 2rem; }
.contact-info li { margin-bottom: 1rem; display: flex; align-items: flex-start; }
.contact-info li i { color: var(--secondary-color); margin-right: 1rem; font-size: 1.2rem; width: 20px; text-align: center; margin-top: 4px; }
.contact-info li span, .contact-info li a { word-break: break-word; }
.contact-info a { color: var(--dark-color); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* --- Botones de Contacto --- */
.contact-buttons { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-call, .btn-email, .btn-whatsapp { flex-grow: 1; text-align: center; }
.btn-call { background-color: var(--secondary-color); color: var(--dark-color); }
.btn-email { background-color: var(--primary-color); color: #fff !important; }
.btn-whatsapp { background-color: #25d366; color: #fff !important; }
.btn-call i, .btn-email i { margin-right: 0.5rem; }

/* --- Footer --- */
.footer { background: var(--dark-color); color: #fff; text-align: center; padding: 2rem 0; }

/* --- Páginas de Error --- */
.error-page { display: flex; justify-content: center; align-items: center; height: 100vh; text-align: center; background: var(--light-color); }
.error-container { padding: 2rem; }
.error-container .logo { height: 70px; margin-bottom: 2rem; }
.error-container h1 { font-size: 4rem; color: var(--primary-color); margin-bottom: 1rem; }
.error-container p { margin-bottom: 2rem; font-size: 1.2rem; }
.error-container .btn { font-size: 1rem; }

/* --- Animaciones --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
    .contact-wrapper { padding: 2rem; }
}