
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2933;
    background-color: #f4f7fb;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.main-header {
    position: relative;
    min-height: 70vh;
    color: #ffffff;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 6%;
    background: rgba(9, 31, 68, 0.92);
    backdrop-filter: blur(10px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-color: #fff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.brand-title {
    font-weight: 600;
}

.brand-subtitle {
    font-size: 0.78rem;
    opacity: 0.85;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.nav-right a {
    color: #e5efff;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-right a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-nav {
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #fff;
    font-weight: 500;
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 6% 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(15, 52, 96, 0.8), rgba(15, 118, 110, 0.7)), url('../img/portada.jpg');
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 55%), radial-gradient(circle at 80% 80%, rgba(15, 118, 110, 0.35), transparent 55%);
    z-index: -1;
}

.hero-content {
    max-width: 720px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1rem;
    max-width: 580px;
    margin-bottom: 1.75rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}

.hero-small {
    font-size: 0.85rem;
    opacity: 0.92;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-outline {
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.35);
}

.btn.full {
    width: 100%;
}

/* Layout */
.section {
    padding: 4rem 6%;
}

.section-alt {
    background: #e5edf7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #102a43;
}

.section-intro {
    margin: 0.5rem 0 2rem;
    color: #52606d;
}

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.two-cols.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.icon-list {
    list-style: none;
    margin: 1.5rem 0 1.2rem;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    color: #364152;
    font-size: 0.95rem;
}

.icon-list i {
    color: #059669;
    margin-top: 0.12rem;
}

.social-block {
    margin-top: 1rem;
    font-size: 0.92rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    color: #1d4ed8;
    text-decoration: none;
}

.social-link i {
    font-size: 1.2rem;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 1.1rem;
    overflow: hidden;
}

.shadow {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.card-header {
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, #0f4c81, #0ea5e9);
    color: #ffffff;
}

.card-body {
    padding: 1rem;
}

.fb-embed-wrapper iframe {
    width: 100%;
    border-radius: 0.9rem;
}

.embed-note {
    font-size: 0.78rem;
    color: #6b7280;
    padding: 0.5rem 1.2rem 1rem;
}

/* Servicios */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
}

.service-card {
    background: #ffffff;
    padding: 1.5rem 1.4rem;
    border-radius: 1.2rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.service-icon {
    font-size: 1.7rem;
    color: #0f766e;
    margin-bottom: 0.6rem;
}

.service-card h3 {
    margin-bottom: 0.4rem;
    color: #111827;
    font-size: 1.05rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Flotilla */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.rounded {
    border-radius: 1rem;
}

.shadow-sm {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.7rem;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 0.9rem;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: saturate(1.05);
}

.gallery-grid figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.05);
    filter: saturate(1.15);
}

.gallery-grid figure:hover::after {
    opacity: 1;
}

.gallery-note {
    font-size: 0.82rem;
    margin-top: 0.8rem;
    color: #6b7280;
}

/* Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1.1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contacto */
.contact-form {
    background: #ffffff;
    padding: 1.8rem 1.6rem;
    border-radius: 1.1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.form-row {
    margin-bottom: 1rem;
}

.form-row.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

label {
    display: block;
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
    color: #374151;
}

input, textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f9fafb;
}

input:focus, textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.35);
    background: #ffffff;
}

.contact-card {
    background: #0b173e;
    color: #e5e7eb;
    padding: 1.8rem 1.6rem;
    border-radius: 1.1rem;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.6);
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.contact-list i {
    margin-top: 0.1rem;
    color: #22c55e;
}

.contact-list a {
    color: #bfdbfe;
    text-decoration: none;
}

.map-placeholder {
    margin-top: 1.1rem;
    padding: 0.9rem 0.8rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.7);
    font-size: 0.85rem;
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 1.4rem;
    right: 1.4rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.6);
    z-index: 60;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 50px rgba(34, 197, 94, 0.7);
}

/* Footer */
.main-footer {
    background: #020617;
    color: #9ca3af;
    padding: 1.6rem 6% 1.8rem;
    font-size: 0.82rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
}

.main-footer a {
    color: #f9fafb;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 1rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 950px;
    width: 100%;
}

#lightboxImage {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #111827;
    color: #e5e7eb;
    border-radius: 999px;
    border: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        padding-inline: 1.3rem;
    }
    .nav-right {
        display: none;
    }
    .hero {
        padding-inline: 1.8rem;
        text-align: left;
    }
    .two-cols,
    .two-cols.reverse {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3rem 1.4rem;
    }
    .hero {
        padding-inline: 1.4rem;
    }
    .form-row.two {
        grid-template-columns: minmax(0, 1fr);
    }
    .gallery-grid img {
        height: 150px;
    }
    .navbar {
        border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    }
    .hero-content p {
        max-width: 100%;
    }
}
