:root {
    --blue: #0f1f5c;
    --blue-2: #1a2f80;
    --red: #c1122f;
    --red-2: #a90f29;
    --white: #ffffff;
    --light: #f4f7fb;
    --dark: #0f172a;
    --text: #334155;
    --border: #dbe2ea;
    --success: #15803d;
    --error: #dc2626;
    --shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: var(--white);
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 31, 92, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    color: #ffffff;
    font-weight: 800;
}
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(15, 31, 92, 0.92), rgba(193, 18, 47, 0.85)),
        url("../img/hero-bg.jpg") center/cover no-repeat;
    color: var(--white);
    padding: 96px 0 84px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.22));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.hero-chip,
.section-label {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.hero-chip {
    background: rgba(255,255,255,0.14);
    margin-bottom: 16px;
}

.hero-text h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin: 0 0 18px;
}

.hero-text p {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.7;
    max-width: 700px;
    color: rgba(255,255,255,0.94);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-contact-mini {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-contact-mini {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.hero-contact-link {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

/* Hover general */
.hero-contact-link:hover {
    transform: translateY(-2px);
}

/* Colores por red */
.hero-contact-link.facebook:hover {
    background: #1877f2;
}

.hero-contact-link.instagram:hover {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.hero-contact-link.whatsapp:hover {
    background: #25d366;
}

.hero-highlight-card {
    background: rgba(255,255,255,0.98);
    color: var(--dark);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

.hero-highlight-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--blue);
}

.hero-highlight-card ul {
    padding-left: 20px;
    margin-top: 0;
    margin-bottom: 16px;
}

.hero-highlight-card li {
    margin-bottom: 10px;
}

.section {
    padding: 78px 0;
}

.section-light {
    background: var(--light);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-label {
    background: rgba(15, 31, 92, 0.08);
    color: var(--blue);
    margin-bottom: 14px;
}

.section-header h2 {
    margin: 0 0 14px;
    font-size: 2.1rem;
    color: var(--blue);
}

.section-header p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card,
.contact-panel,
.form-panel,
.admin-table-wrapper,
.empty-state {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.product-card {
    overflow: hidden;
    border: 1px solid #e7edf4;
}

.product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-image img {
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 22px;
}

.product-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--blue);
}

.product-content p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: start;
}

.contact-panel,
.form-panel {
    padding: 28px;
}

.contact-panel h2 {
    margin-top: 14px;
    margin-bottom: 12px;
    color: var(--blue);
}

.contact-panel p {
    color: var(--text);
    line-height: 1.7;
}

.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.contact-links a {
    background: var(--blue);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.contact-data-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    background: #fbfdff;
}

.contact-data-box p {
    margin: 0 0 10px;
}

.contact-data-box p:last-child {
    margin-bottom: 0;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 14px;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue-2);
    box-shadow: 0 0 0 4px rgba(26, 47, 128, 0.12);
}

.field-error {
    min-height: 18px;
    color: var(--error);
    font-size: 0.9rem;
}

.form-response {
    min-height: 24px;
    font-weight: 700;
}

.form-response.success {
    color: var(--success);
}

.form-response.error {
    color: var(--error);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-2));
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--blue);
    border: 1px solid var(--border);
}

.btn-block {
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
}

.footer-content p {
    margin: 0;
}

.site-footer {
    background: linear-gradient(135deg, #1a2f80, #a4161a);
    color: var(--white);
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-brand h3 {
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.85;
    line-height: 1.5;
}

.footer-contact h4,
.footer-social h4 {
    margin-bottom: 12px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-social .social-links {
    display: flex;
    gap: 12px;
}

.footer-bottom {
    text-align: center;
    padding: 18px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}
.social-links {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Colores por red */

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.social-icon.whatsapp {
    background: #25d366;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social .social-links {
        justify-content: center;
    }
}

.admin-body {
    background: #f3f6fb;
}

.admin-header {
    background: var(--blue);
    color: var(--white);
    padding: 28px 0;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-header h1 {
    margin: 0 0 8px;
}

.admin-header p {
    margin: 0;
    color: rgba(255,255,255,0.86);
}

.admin-main {
    padding: 34px 0 50px;
}

.admin-table-wrapper {
    padding: 20px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e7edf4;
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}

.admin-table th {
    background: #f8fbff;
    color: var(--blue);
    font-weight: 800;
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
}

.empty-state h2 {
    margin-top: 0;
    color: var(--blue);
}

@media (max-width: 992px) {
    .hero-grid,
    .products-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 76px 0 64px;
    }

    .section {
        padding: 62px 0;
    }

    .hero-actions,
    .contact-links {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        linear-gradient(135deg, rgba(15, 31, 92, 0.95), rgba(193, 18, 47, 0.90));
}

.login-card {
    width: min(100%, 460px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.login-brand h1 {
    margin: 0;
    color: var(--blue);
    font-size: 1.5rem;
}

.login-brand p {
    margin: 4px 0 0;
    color: var(--text);
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
}

.login-footer {
    margin-top: 18px;
    text-align: center;
}

.login-footer a {
    color: var(--blue);
    font-weight: 700;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.logout-form {
    margin: 0;
}
.admin-toolbar {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
}

.admin-filter-group {
    display: grid;
    gap: 8px;
}

.admin-filter-group label {
    font-weight: 700;
    color: var(--blue);
}

.admin-filter-group input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 14px;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-filter-group input:focus {
    border-color: var(--blue-2);
    box-shadow: 0 0 0 4px rgba(26, 47, 128, 0.12);
}

.admin-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-summary {
    color: var(--text);
    font-size: 0.95rem;
}

.pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.pagination-pages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--blue);
    font-weight: 700;
}

.pagination-link.active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

@media (max-width: 768px) {
    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        width: 100%;
    }

    .admin-filter-actions .btn {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .brand-logo {
        height: 34px;
    }

    .brand-name {
        font-size: 1rem;
    }
}
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    background: #1fb85a;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.whatsapp-float i {
    line-height: 1;
}

.whatsapp-float-tooltip {
    position: absolute;
    right: 78px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--blue);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: var(--shadow);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-4px);
}
.whatsapp-float {
    animation: whatsapp-pulse 2.2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
@media (max-width: 768px) {
    .whatsapp-float {
        width: 58px;
        height: 58px;
        right: 16px;
        bottom: 16px;
        font-size: 1.8rem;
    }

    .whatsapp-float-tooltip {
        display: none;
    }
}
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px; /* tamaño fijo visual */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* clave */
    display: block;
}

.about-content h2 {
    margin: 14px 0 16px;
    color: var(--blue);
    font-size: 2rem;
}

.about-content p {
    margin: 0 0 14px;
    color: var(--text);
    line-height: 1.75;
}

@media (max-width: 992px) {
    .about-section {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 280px;
    }
}
.location-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* mapa un poco más grande */
    gap: 40px;
    align-items: center;
}

/* TEXTO */
.location-content {
    max-width: 520px;
}

.location-content h2 {
    margin: 12px 0 16px;
    color: var(--blue);
}

.location-content p {
    line-height: 1.7;
}

/* CARD */
.location-card {
    background: var(--white);
    padding: 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 20px 0;
    border: 1px solid #e5e7eb;
}

/* MAPA */
.location-map {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .location-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .location-map {
        height: 320px;
    }

    .location-content {
        max-width: 100%;
    }
}

