* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    color: #333;
}

/* Top Header - Burgundy */
.top-header {
    background-color: #691c32;
    padding: 12px 0;
}

.top-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.accessibility-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.gob-logo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.gob-logo-header .escudo {
    width: 40px;
    height: 40px;
}

.gob-logo-header span {
    font-size: 14px;
    font-weight: 500;
}

.gob-logo-header .gobierno {
    font-size: 11px;
    opacity: 0.9;
}

.top-nav {
    display: flex;
    gap: 25px;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.top-nav a:hover {
    text-decoration: underline;
}

.search-icon {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* Secondary Nav - Dark Burgundy */
.secondary-nav {
    background-color: #4a1425;
    padding: 12px 0;
}

.secondary-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    color: #d4a574;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #d4a574;
}

/* Hero Slider */
.hero-slider {
    background: linear-gradient(135deg, #f5f0e6 0%, #ebe4d6 100%);
    padding: 40px 0;
    position: relative;
}

.hero-slider .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.slider-illustration {
    flex: 0 0 300px;
}

.slider-illustration svg {
    width: 280px;
    height: auto;
}

.slider-content {
    flex: 1;
    text-align: center;
}

.slider-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #691c32;
    margin-bottom: 10px;
}

.slider-content .subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
}

.slider-content .subtitle strong {
    color: #691c32;
}

.warning-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #c9a227;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.warning-icon {
    width: 30px;
    height: 30px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
    font-size: 18px;
}

.info-list {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.8;
}

.info-list p {
    margin-bottom: 8px;
}

.info-list .highlight {
    color: #691c32;
    font-weight: 600;
}

.info-list .url {
    color: #b8860b;
    font-weight: 600;
    display: block;
    text-align: center;
    margin: 15px 0;
    font-size: 16px;
}

.info-list .domains {
    color: #c9a227;
    font-weight: 600;
}

.info-list .contact {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.info-list .contact strong {
    color: #333;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #691c32;
}

/* Main Title Section */
.main-title-section {
    padding: 40px 20px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-title-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #9a7b4f;
    letter-spacing: 2px;
    padding-bottom: 15px;
    border-bottom: 2px solid #9a7b4f;
    display: inline-block;
}

/* Consultas Section */
.consultas-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.consultas-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #333;
    margin-bottom: 10px;
}

.consultas-header p {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

.consultas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.consulta-card {
    background: #fff;
    border: 2px solid #c9a227;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.consulta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.2);
    border-color: #9a7b4f;
}

.consulta-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.consulta-card .icon svg {
    width: 100%;
    height: 100%;
    stroke: #c9a227;
    fill: none;
    stroke-width: 1.5;
}

.consulta-card span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* También Section */
.tambien-section {
    background: #f9f9f9;
    padding: 50px 20px;
}

.tambien-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.tambien-header {
    text-align: center;
    margin-bottom: 30px;
}

.tambien-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #691c32;
    display: inline-block;
}

.tambien-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tambien-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.tambien-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.tambien-card-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.tambien-card:nth-child(1) .tambien-card-img { 
    background: linear-gradient(135deg, #2d5a4a 0%, #3d7a6a 100%); 
    color: #fff;
}
.tambien-card:nth-child(2) .tambien-card-img { 
    background: linear-gradient(135deg, #34495e 0%, #4a6785 100%); 
    color: #fff;
}
.tambien-card:nth-child(3) .tambien-card-img { 
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%); 
    color: #fff;
}

.tambien-card-content {
    padding: 20px;
    text-align: center;
}

.tambien-card-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2d5a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: #691c32;
    color: #fff;
    padding: 40px 0 20px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #d4a574;
}

.footer-section p,
.footer-section a {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    text-decoration: none;
    display: block;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.modal-header {
    background: #691c32;
    color: #fff;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 25px;
}

.modal-option {
    display: block;
    width: 100%;
    padding: 18px;
    margin-bottom: 12px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.modal-option:hover {
    background: #fff5e6;
    border-color: #c9a227;
}

.modal-option strong {
    display: block;
    font-size: 14px;
    color: #691c32;
    margin-bottom: 5px;
}

.modal-option small {
    font-size: 12px;
    color: #888;
}

.modal-footer {
    padding: 15px 25px 25px;
    text-align: right;
}

.modal-footer button {
    padding: 12px 30px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.modal-footer button:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 992px) {
    .consultas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tambien-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slider-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .slider-illustration {
        flex: none;
    }
}

@media (max-width: 768px) {
    .top-header .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .secondary-nav .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .slider-content h1 {
        font-size: 22px;
    }
    .consultas-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tambien-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .top-nav {
        display: none;
    }
    .consultas-grid {
        grid-template-columns: 1fr;
    }
    .main-nav {
        gap: 15px;
        font-size: 12px;
    }
}