/* --- Variables y reset --- */
:root {
    --primary: #0b2f4f;
    --secondary: #2779d6;
    --accent: #f5320b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--gray);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ESTILOS PARA EL TEXTO ANIMADO (TYPING EFFECT) */
.typing-title {
    min-height: 90px;
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Cursor parpadeante */
.typing-title::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Botones del héroe */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2779d6;
    color: white;
}

.btn-primary:hover {
    background: #0ea5e9;
    transform: translateY(-3px);
}

.btn-secondary {
    background: #f5320b;
    color: white;
}

.btn-secondary:hover {
    background: #d32f2f;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .typing-title {
        font-size: 28px;
        min-height: 70px;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* --- Header --- */
header {
    background: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo y nombre completo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 6px;
}

.company-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    justify-content: space-between;
}
.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
}

/* Navegación */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}
nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
nav a:hover { color: var(--accent); }
.btn-cta {
    background: var(--accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-cta:hover { background: #d32f2f; }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/hero-image.jpg') no-repeat center center / cover;
    overflow: hidden;
    color: white;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}
.text-content {
    background: rgba(11, 47, 79, 0.85);
    padding: 40px 60px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.text-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e2e8f0;
}

/* --- Secciones generales --- */
section {
    padding: 80px 0;
}
h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Servicios --- */
.services-section {
    background: white;
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.card {
    background: white;
    padding: 35px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}
.card h3 {
    color: var(--primary);
    margin: 15px 0 10px;
    font-size: 20px;
}

/* --- Cursos --- */
.courses-section {
    background: var(--light);
}
.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.course-card:hover { transform: translateY(-5px); }
.course-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.course-info {
    padding: 20px;
}
.course-info h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
}
.pdf-section {
    background: white;
    text-align: center;
}
.pdf-section .btn-primary {
    margin-top: 50px !important;
    display: inline-block; 
}
/* SECCIÓN DEL CATÁLOGO */
.pdf-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0;
}

/* TARJETA RECUADRO DEL CATÁLOGO */
.catalog-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ICONO DEL PDF */
.catalog-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5320b, #d32f2f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.catalog-icon i {
    font-size: 40px;
    color: white;
}

/* TÍTULO DENTRO DEL RECUADRO */
.catalog-card h3 {
    color: #0b2f4f;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* TEXTO DESCRIPTIVO */
.catalog-card p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* BOTÓN DEL CATÁLOGO */
.btn-catalog {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0b2f4f, #1e5ba6);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 47, 79, 0.3);
}

.btn-catalog:hover {
    background: linear-gradient(135deg, #1e5ba6, #2779d6);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(11, 47, 79, 0.4);
}

.btn-catalog i {
    font-size: 18px;
}

/* SEPARACIÓN ENTRE SECCIONES */
.separator-section {
    margin: 40px 0;
    position: relative;
}

.separator-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #90add0, transparent);
}
/* ESTILO PARA LA IMAGEN */
.catalog-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.catalog-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* ← Cambia de 'cover' a 'contain' */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .catalog-card {
        padding: 35px 20px;
        margin: 0 15px;
    }
    
    .catalog-card h3 {
        font-size: 20px;
    }
    
    .catalog-card p {
        font-size: 14px;
    }
    
    .btn-catalog {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .catalog-icon {
        width: 65px;
        height: 65px;
    }
    
    .catalog-icon i {
        font-size: 32px;
    }
}
/* SEPARACIÓN ESPECIAL PARA SECCIÓN CATÁLOGO */
.pdf-section {
    margin-bottom: 40px;
    position: relative;
}

.pdf-section::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0b2f4f, #f5320b, #0b2f4f);
    margin: 50px auto 0;
    border-radius: 3px;
}
/* BOTÓN FLOTANTE GRANDE - GMAIL AZUL */
.floating-gmail-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(26, 115, 232, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

.floating-gmail-btn:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #0d47a1, #0a3a7a);
    box-shadow: 0 12px 35px rgba(26, 115, 232, 0.7);
}

.floating-gmail-btn i {
    font-size: 28px;
    margin-bottom: 3px;
}

.floating-gmail-btn .btn-text {
    font-size: 10px;
    font-weight: bold;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.floating-gmail-btn::before {
    content: "Envíanos un correo";
    position: absolute;
    right: 95px;
    background: #0b2f4f;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    font-family: 'Poppins', sans-serif;
}

.floating-gmail-btn::after {
    content: '';
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0b2f4f;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.floating-gmail-btn:hover::before,
.floating-gmail-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.floating-gmail-btn:hover::before {
    right: 100px;
}

.floating-gmail-btn:hover::after {
    right: 90px;
}

/* CONTACTO DINÁMICO - MAPA + INFO */
.contact-dynamic {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.map-large {
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-sidebar {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0b2f4f;
}

.sidebar-header i {
    font-size: 28px;
    color: #0b2f4f;
}

.sidebar-header h3 {
    margin: 0;
    color: #0b2f4f;
}

.sidebar-address p, .sidebar-contact p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-address i, .sidebar-contact i {
    width: 25px;
    color: #0b2f4f;
}

.reference {
    font-size: 13px;
    color: #64748b;
    margin-left: 37px;
}

.btn-route {
    display: block;
    text-align: center;
    background: #0b2f4f;
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-route:hover {
    background: #1e5ba6;
}

/* --- Nosotros --- */
.about-section {
    background: white;
}
.about-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.mission-vision {
    flex: 1;
    min-width: 300px;
}
.mission-vision .card {
    background: var(--light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary);
    text-align: left;
}
.why-us {
    flex: 1.5;
    background: var(--light);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}
.why-us ul {
    list-style: none;
    padding-left: 0;
}
.why-us li {
    position: relative;
    margin-bottom: 12px;
    font-weight: 500;
}
.motivational-full-img {
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: block;
    margin: auto;
}

.motivational-section {
    background: linear-gradient(135deg, #0b2f4f, #1e3a5f);
    padding: 80px 20px;
}
.motivational-full-img {
    transition: transform 0.4s ease;
}

.motivational-full-img:hover {
    transform: scale(1.03);
}

/* --- Clientes --- */
.client-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}
.client-logo {
    max-width: 140px;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.client-logo:hover { opacity: 1; }

/* --- Eventos --- */
.events-section {
    background: white;
}
.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.event-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.event-image:hover {
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}
.footer-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-column {
    flex: 1;
    min-width: 250px;
}
.footer-column h3 {
    color: white;
    margin: 20px 0 20px;
    font-size: 20px;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-column a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 14px;
}

/* MAPA PEQUEÑO */
.map-small {
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    background: white;
}

.map-small iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

.map-address {
    padding: 12px 15px;
    background: #f8fafc;
    text-align: center;
    font-size: 13px;
    color: #475569;
    border-top: 1px solid #e2e8f0;
}

.map-address i {
    color: #ea4335;
    margin-right: 8px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav { display: none; }
    nav.open { display: block; margin-top: 20px; }
    nav ul { flex-direction: column; align-items: center; gap: 15px; }
    .hero-content h1 { font-size: 32px; }
    .text-content { padding: 30px; }
    .hero-buttons { flex-direction: column; }
    .about-content { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
    
    .contact-dynamic {
        grid-template-columns: 1fr;
    }
    
    .map-large {
        min-height: 300px;
    }
    
    .floating-gmail-btn {
        width: 65px;
        height: 65px;
        bottom: 25px;
        right: 25px;
    }
    
    .floating-gmail-btn i {
        font-size: 24px;
    }
    
    .floating-gmail-btn .btn-text {
        font-size: 9px;
    }
    
    .floating-gmail-btn::before {
        display: none;
    }
    
    .map-small {
        max-width: 100%;
    }
    
    .map-small iframe {
        height: 220px;
    }
}

/* CORRECCIONES HEADER */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

.company-name {
    white-space: normal !important;
    font-size: clamp(13px, 3.5vw, 17px) !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .logo-container {
        max-width: 75% !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
}
/* Pega esto en tu styles.css */

/* Fondo con zoom suave */
.hero-section {
    animation: zoomBackground 25s ease-in-out infinite alternate;
}

@keyframes zoomBackground {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Contenido que aparece */
.text-content {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Título con brillo */
.text-content h1 {
    animation: glowText 3s ease-in-out infinite;
}

@keyframes glowText {
    0%, 100% { text-shadow: 0 0 0 rgba(255,255,255,0); }
    50% { text-shadow: 0 0 15px rgba(255,255,255,0.3); }
}

/* Párrafo que aparece después */
.text-content p {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Botones que aparecen al final */
.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* INPUTS Y BOTONES */
form input,
form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background: #000;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
