/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVBAR ===== */
nav {
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #ffc000;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #ccc;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffc000;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(255, 192, 0, 0.15);
    color: #ffc000;
    border: 1px solid rgba(255, 192, 0, 0.4);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: #ffc000;
}

.hero p {
    font-size: 1.15rem;
    color: #aaa;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background-color: #ffc000;
    color: #1a1a2e;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid #ffc000;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: #ffc000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,192,0,0.3);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background-color: #fff;
    color: #1a1a2e;
    border-color: #fff;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #aaa;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 2s ease 1s forwards;
    opacity: 0;
}

.hero-scroll span {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #ffc000, transparent);
    display: block;
}

/* ===== CARRUSEL ===== */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-container {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex-shrink: 0;
}

.carousel-btn {
    background-color: #ffc000;
    color: #1a1a2e;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.2s;
    font-weight: 700;
}

.carousel-btn:hover {
    background-color: #e6ac00;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border: none;
}

.carousel-dot.active {
    background-color: #ffc000;
    transform: scale(1.3);
}

/* ===== SECCIONES ===== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-tag {
    display: inline-block;
    color: #ffc000;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.2rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    color: #888;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin: 0 auto 3rem;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.8rem;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
    font-weight: 700;
}

.card-body p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(255,192,0,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

/* ===== SECCIÓN GRIS ===== */
.section-gray {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.section-gray .section {
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== FORMULARIO CONTACTO ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #777;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

.contact-detail span:first-child {
    font-size: 1.3rem;
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border 0.3s, box-shadow 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffc000;
    box-shadow: 0 0 0 4px rgba(255,192,0,0.1);
    background-color: #fff;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===== ALERTAS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1a1a2e;
    color: #aaa;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-logo {
    color: #ffc000;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col ul a {
    color: #777;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: #ffc000;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #2a2a3e;
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}

/* ===== HERO MINI (páginas internas) ===== */
.hero-mini {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-mini h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.hero-mini p {
    color: #aaa;
    font-size: 1rem;
}

/* ===== NOSOTROS ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #1a1a2e;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; color: #fff; }

    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}