:root {
    --primary: #082544;
    --secondary: #0b345f;
    --green: #5fbf6a;
    --green-dark: #2e8b45;
    --text: #0f172a;
    --muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--text);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* HEADER */

.header {
    background: linear-gradient(90deg, #04192f, #082f57);
    color: var(--white);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.logo img {
    width: 78px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a {
    font-size: 14px;
    font-weight: 600;
    padding: 22px 0;
    color: var(--white);
    opacity: 0.9;
}

.nav a.active {
    color: var(--green);
    border-bottom: 3px solid var(--green);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 18px;
}

.btn-small {
    background: var(--white);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 13px;
    border-radius: 2px;
}

/* HERO */

.hero {
    background: linear-gradient(90deg, #ffffff, #f1f5f9);
    padding: 46px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.subtitle {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero h1 {
    max-width: 520px;
    font-size: 42px;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 18px;
}

.hero p {
    max-width: 520px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 13px 22px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    height: 290px;
    object-fit: cover;
    border-radius: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.dot {
    width: 9px;
    height: 9px;
    background: #cbd5e1;
    border-radius: 50%;
}

.dot.active {
    background: var(--primary);
}

/* FEATURES */

.features {
    padding: 30px 0;
    background: linear-gradient(90deg, #ffffff, #f1f5f9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

.feature i {
    font-size: 28px;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}
/* INSTALLATIONS */

.installations {
    background: linear-gradient(90deg, #ffffff, #f1f5f9);
    padding: 30px 0;
}

.installations h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.card img {
    height: 130px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.card i {
    color: var(--primary);
    margin-right: 5px;
}

.btn-outline {
    display: block;
    text-align: center;
    color: var(--green-dark);
    border: 1px solid var(--green-dark);
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
}

.btn-outline:hover {
    background: var(--green-dark);
    color: white;
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/*Mapa*/
.location-section {
    background: linear-gradient(90deg, #ffffff, #f1f5f9);
    padding: 40px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: center;
}

.location-info h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.location-info p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.location-data {
    margin-top: 20px;
}

.location-data p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-data i {
    color: var(--green-dark);
    font-size: 18px;
}

.location-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 800px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-map iframe {
        height: 260px;
    }
}

/* FOOTER */

.footer {
    background: linear-gradient(90deg, #04192f, #082f57);
    color: var(--white);
    padding-top: 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 220px);
    justify-content: center;
    gap: 70px;
}

.footer p,
.footer a {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.8;
}

.footer h4 {
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-brand p {
    max-width: 270px;
    margin: 12px 0;
}

.social {
    display: flex;
    gap: 10px;
}

.social a {
    width: 28px;
    height: 28px;
    background: #0f3b68;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 24px;
    padding: 12px;
}

.footer-bottom p {
    font-size: 12px;
}
/* RESPONSIVE */

@media (max-width: 992px) {
    .hero-grid,
    .features-grid,
    .cards-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .hero h1 {
        font-size: 34px;
    }

    .feature:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 640px) {
    .hero-grid,
    .features-grid,
    .cards-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 32px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-image img {
        height: 220px;
    }

    .feature {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 22px 10px;
    }

    .feature:last-child {
        border-bottom: none;
    }

    .section-header {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }
}

/* =========================
   CARRUSEL 
========================= */
.carousel {
    width: 95%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.carousel-track {
    display: flex;
    width: 400%;
    height: 100%;
    animation: moverCarrusel 16s infinite;
}

.carousel-slide {
    width: 25%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@keyframes moverCarrusel {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-25%);
    }

    45% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    70% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-75%);
    }

    95% {
        transform: translateX(-75%);
    }

    100% {
        transform: translateX(0);
    }
}

.user-menu {
    position: relative;
}

.user-menu input {
    display: none;
}

.user-icon {
    cursor: pointer;
    color: white;
    font-size: 18px;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 34px;
    right: 0;
    width: 190px;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
    padding: 12px;
    z-index: 20;
}

.user-dropdown p {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary);
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    text-align: left;
    font-size: 13px;
    padding: 8px;
    cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #f1f5f9;
}

.user-menu input:checked ~ .user-dropdown {
    display: block;
}

.header a,
.nav a,
.logo,
.nav-actions a,
.user-dropdown a {
    text-decoration: none;
}
/* =========================
   MENÚ HAMBURGUESA Y RESPONSIVE GENERAL
========================= */
.hamburger-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 4px;
}

.hamburger-btn span {
    width: 22px;
    height: 2px;
    background: var(--white);
    display: block;
    transition: 0.2s;
}

.hamburger-btn.activo span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.activo span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.activo span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    width: 100%;
    background: #061f3a;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 0 14px;
}

.mobile-menu a,
.mobile-menu button {
    display: block;
    width: 100%;
    padding: 13px 4px;
    color: var(--white);
    background: transparent;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    color: var(--green);
}

.mobile-menu form {
    margin: 0;
}

.mobile-register {
    color: var(--green) !important;
}

@media (max-width: 1024px) {
    .header {
        height: auto;
        min-height: 64px;
    }

    .nav-container {
        width: min(1180px, 92%);
        min-height: 64px;
        flex-wrap: wrap;
        gap: 0;
    }

    .nav-desktop,
    .nav-actions-desktop {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-menu.abierto {
        display: block;
    }

    .logo img {
        width: 72px;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1,
    .hero p {
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
    }

    .carousel {
        width: 100%;
        height: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        width: min(1180px, 92%);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        padding: 28px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .carousel {
        height: 220px;
    }

    .cards-grid,
    .features-grid {
        gap: 14px;
    }

    .footer {
        padding-top: 22px;
    }
}

/* Refuerzo para páginas que también cargan Bootstrap */
@media (max-width: 1024px) {
    .header .nav-desktop,
    .header .nav-actions-desktop {
        display: none !important;
    }

    .header .hamburger-btn {
        display: flex !important;
    }
}
