* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }
body { background-color: #f4f4f9; color: #333; display: flex; flex-direction: column; min-height: 100vh; }

/* Dynamic Banner Header    relative*/
.hero-banner { position: relative; height: 250px; overflow: hidden; }
.hero-banner .slide { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-banner .slide.active { opacity: 1; }
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; color:white; }

/* Main layout */
.container { width: 90%; max-width: 900px; margin: 20px auto; flex: 10; }
.search-box, .owner-section { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 20px; }
.hidden { display: none !important; }

/* Forms */
form { display: flex; flex-direction: column; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full-width { grid-column: span 2; }
input, textarea, select, button { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
button { background: #0056b3; color: white; border: none; cursor: pointer; font-weight: bold; }
button:hover { background: #003d80; }
.btn-success { background: #28a745; }
.btn-success:hover { background: #1e7e34; }

/* Modal */
.modal { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); display:flex; align-items:center; justify-content:center; }
.modal-content { background: white; padding: 30px; border-radius: 8px; max-width: 500px; width: 90%; position: relative; }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; }
.dealership-list { list-style: none; margin-top: 10px; }
.dealership-list li { padding: 10px 0; border-bottom: 1px solid #ddd; }

/* Footer */
footer { background: #222; color: white; text-align: center; padding: 20px; margin-top: auto; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 10px; }
.img-btn img { height: 45px; border-radius: 5px; transition: transform 0.2s; }
.img-btn img:hover { transform: scale(1.08); }

.alert-warning { color: #856404; background-color: #fff3cd; padding: 10px; border-radius: 4px; }
.alert-danger { color: #721c24; background-color: #f8d7da; padding: 10px; border-radius: 4px; }
.alert-aceptado { color: #0c5460; background-color: #d1ecf1; padding: 10px; border-radius: 4px;}

/* Reportes */
.reports-page { max-width: 1200px; }
.report-header, .report-actions, .filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.report-header { margin-bottom: 20px; }
.report-header nav a, .button-link { color: #0056b3; font-weight: bold; text-decoration: none; }
.report-date-grid { max-width: 520px; }
.state-options { border: 1px solid #ddd; border-radius: 6px; padding: 15px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.state-options legend { font-weight: bold; padding: 0 6px; }
.state-check { white-space: nowrap; }
.state-check input { width: auto; margin-right: 5px; }
.summary-grid, .charts-grid, .tables-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0; }
.charts-grid, .tables-grid { grid-template-columns: repeat(2, 1fr); }
.summary-card, .chart-card, .table-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.summary-card span { display: block; color: #666; } .summary-card strong { display: block; color: #0056b3; font-size: 2rem; margin-top: 8px; }
.chart-wrapper { height: 320px; position: relative; }
.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: 10px; border-bottom: 1px solid #ddd; text-align: left; } th { background: #eef4fb; }
.report-title p { color: #666; margin-top: 5px; }
@media (max-width: 760px) { .summary-grid, .charts-grid, .tables-grid { grid-template-columns: 1fr; } .report-header, .report-actions { align-items: flex-start; flex-direction: column; } }
@media print { .report-filters, .report-actions, .report-header nav { display: none !important; } .reports-page { width: 100%; max-width: none; } .chart-card, .table-card, .summary-card { box-shadow: none; } }