:root {
    --color-primary: #65779F;
    --color-primary-light: #8FA0BF;
    --color-primary-dark: #4A5C82;

    /* Color del logo (acento cálido elegante) */
    --color-accent: #F6DDA6;
    --color-accent-dark: #E8C97C;

    /* Fondos */
    --color-background: #F5F6F8;
    --color-surface: #FFFFFF;

    /* Texto */
    --color-text: #2C333D;
    --color-text-light: #5A6472;

    /* Neutros */
    --color-border: #E2E6ED;
    --color-white: #FFFFFF;
    --max-width: 1100px;
}

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

body {
    font-family: "Questrial", sans-serif;
    background: var(--color-background);
    color: var(--color-text);
}

h2{
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* ===============================
   HEADER BASE (mobile first)
================================= */

.site-header {
    background: linear-gradient(
        135deg,
        #2F3E5C,
        var(--color-primary-dark)
    );
    padding: 15px 20px;
    color: var(--color-white);
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: transform 0.3s ease;
}
.site-header.hidden {
    transform: translateY(-100%);
}
.header-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-image {
    height: 80px;
    max-width: 100%;
}
.logo-image-hero {
    height: 120px;
    max-width: 100%;
}

/* ===============================
   MENU BUTTON
================================= */

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===============================
   NAV MOBILE (ACORDEÓN)
================================= */

.main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-primary);

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 1100;
}

.main-navigation.active {
    max-height: 1000px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: white;
    padding: 10px;
    border-radius: 6px;
    transition: 0.3s ease;
}

.nav-link:hover {
    background: var(--color-primary-dark);
}

/* ===============================
   DROPDOWN (ACORDEÓN)
================================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    list-style: none;
    margin-top: 8px;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

/* Activación en móvil */
.dropdown.active .dropdown-menu {
    max-height: 500px;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.15);
}

/* ===============================
   DESKTOP
================================= */

@media (min-width: 900px) {

    .menu-toggle {
        display: none;
    }

    .main-navigation {
        position: static;
        background: transparent;
        width: auto;

        max-height: none;
        overflow: visible;
    }

    .nav-list {
        flex-direction: row;
        padding: 0;
        gap: 25px;
    }

    /* Dropdown desktop animado */

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--color-white);
        min-width: 220px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        border-radius: 10px;
        padding: 0;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 2000;
    }

    .dropdown-menu li a {
        padding: 10px 20px;
        color: var(--color-text);
    }

    .dropdown-menu li a:hover {
        background: var(--color-primary-light);
        color: var(--color-primary-dark);
    }

    .dropdown:hover .dropdown-menu {
        max-height: 500px;
    }
}

/* ===============================
   SECCIÓN HERO PRINCIPAL
================================= */

.hero-container{
    background-color: rgba(74, 92, 130, 0.569);
    padding: 60px;
    width: 80%;
    justify-self: center;
}

.hero-section {
    background-image: url("Carrusel/2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    text-align: center;
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-content: center;
}
.hero-section a{
    color: white;
    text-decoration: underline;
    text-shadow: 1px 1px 1px white
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1;
}

.hero-box {
    background: transparent;
    border-left: 3px solid #c5a46d;
    padding-left: 20px;
    line-height: 1.7;
    text-align: justify;
}

.hero-box p {
    margin-bottom: 12px;
    color: #FFF; /* mucho mejor contraste */
}

.hero-info {
    margin-top: 35px;
    display: flex;
    flex-wrap:nowrap;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    gap: 18px 35px;
    font-size: 0.95rem;
    justify-self: center;
}

.hero-info-item {
    color: var(--color-white);
    opacity: 0.95;
}

.hero-info-item strong {
    font-weight: 600;
    color: var(--color-accent);
    margin-right: 4px;
}

/* ===============================
   MAIN WRAPPER
================================= */

.site-main {
    padding: 60px 20px;
}

.content-wrapper {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 20px;
}

/* ===============================
   SECTIONS
================================= */

.section {
    background: var(--color-surface);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    width: 100%;
}

.section:hover {
    transform: translateY(-3px);
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 8px;
}

/* ===============================
   BUTTONS
================================= */

.form-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Questrial'
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===============================
   FOOTER
================================= */

.site-footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 30px;
    text-align: center;
    margin-top: 60px;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 768px) {

    .hero-container{
        width: 100%
    }
    .hero-title{
        font-size: 2rem;
    }

    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-right {
        width: 100%;
    }

    .hero-box {
        margin-top: 20px;
    }

    .hero-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        font-size: 0.9rem;
    }

    .section {
        padding: 25px;
    }

        .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background: white;
        border-radius: 3px;
        transition: all 0.35s ease;
    }

    /* Estado activo (cuando el menú está abierto) */

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

}

/* ===============================
   FAQ SECTION
================================= */

.section-faq {
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.section-faq::before {
    content: "?";
    position: absolute;
    font-size: 800px;
    font-weight: 700;

    top: 30%;
    right: -60px;
    transform: translateY(-50%);

    color: #65779F;
    opacity: 0.07;

    pointer-events: none;
}

.faq-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 40px;
    color: var(--color-primary);
    position: relative;
}

.faq-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--color-primary-light);
    display: block;
    margin: 12px auto 0;
    border-radius: 3px;
}

/* FAQ ITEMS */

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--color-primary);
}

/* Icono + */

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Rotación cuando está activo */

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

/* RESPUESTA (acordeón animado) */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease;
}

.faq-answer p {
    padding: 10px 0 15px 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Estado activo */

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ===============================
   CONTACT SECTION
================================= */

.section-contact {
    background: var(--color-white);
}

.section-contact a{
    text-shadow: 1px 1px 1px var(--color-text-light);
    text-decoration: underline;
    color: var(--color-text-light)
}

.section-contact {
    position: relative;
    overflow: hidden;
}

.section-contact::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("contacto.svg"); /* tu imagen */
    background-repeat: no-repeat;
    background-position: left -100px top -60px;
    background-size: 500px;

    pointer-events: none;
    opacity: 0.04;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-top: 15px;
    margin-bottom: 5px;
}

.contact-info p {
    color: #555;
    line-height: 1.6;
}

/* FORM */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-family: inherit;
    transition: 0.3s;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(101, 119, 159, 0.25);
}
.uploadcare--widget__button_type_open {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    
}
.uploadcare--widget__button_type_open:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

/* MAPA */

.contact-map iframe {
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* ===============================
   DESKTOP CONTACT
================================= */

@media (min-width: 900px) {

    .contact-grid {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-info {
        flex: 1;
    }

    .contact-form-wrapper {
        flex: 1;
    }
}

/* ===============================
   IMAGE LINKS SECTION
================================= */

.section-links {
    padding: 0;
}

.image-links-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.image-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    height: 320px;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Overlay base */

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: white;
    text-align: center;

    transition: background 0.4s ease;
}

.overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    transition: transform 0.4s ease;
    text-shadow: rgba(0, 0, 0, 0.719) 3px 3px 3px;
}

/* Botón */

.overlay-button {
    padding: 8px 18px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;

    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
}

.overlay-button:hover {
    background: var(--color-accent-dark);
}

/* Hover effects */

.image-card:hover img {
    transform: scale(1.08);
}

.image-card:hover .overlay {
    background: rgba(74, 92, 130, 0.75);
}

.image-card:hover .overlay-button {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   DESKTOP GRID
================================= */

@media (min-width: 900px) {

    .image-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .image-card {
        height: 400px;
    }

}

.tramites-grid {
    display: grid;
    gap: 25px;
}

.tramite-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    background: var(--color-white);
    transition: 0.3s;
}

.tramite-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.tramite-card h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.tramite-card ul {
    margin: 13px 0;
    padding-left: 18px;
    color: var(--color-text-light);
}
.tramite-card li {
    margin: 5px 0;
    
    color: var(--color-text-light);
}
.tramite-card a {
    text-shadow: 1px 1px 1px var(--color-text-light);
    text-decoration: underline;
    color: var(--color-text-light)
}

.tramite-card a:hover {
    text-decoration: none;
}

.tramites-search {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.tramites-search input {
    width: 100%;
    height: 50px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 16px;
    transition: 0.3s;
}

.tramites-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(101, 119, 159, 0.25);
}
.site-main-notaria{
    background-image: url("Carrusel/2.jpg"); /* cambia esto */
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}
.notaria-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color:#FFF;
}

.notaria-overlay {
    width: 100%;
    background-color: rgba(74, 92, 130, 0.569);
    padding: 60px 20px;
    display: flex;
    justify-content: left;
}
.notaria-box {
    max-width: 800px;
    padding: 30px;
    border-radius: 8px;
}
.notaria-title {
    margin-bottom: 20px;
    font-size: 3rem;
}

.notaria-text {
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 5px;
}
.notaria-text a{
    text-decoration: underline;
    text-shadow: 1px 1px 1px white;
    color: white;
}

.notaria-text p {
    margin-bottom: 12px;
}
.notaria-text::after{
    content: "";
    width: 100%;
    height: 3px;
    background: var(--color-accent-dark);
    display: block;
    margin: 12px auto 0;
    border-radius: 3px;
}
.notaria-info {
    padding-top: 15px;
}

.notaria-info p {
    margin-bottom: 8px;
}
.notaria-info p strong{
    color: var(--color-accent)
}
@media (max-width: 768px) {
    .notaria-box {
        padding: 20px;
    }

    .notaria-overlay {
        padding: 40px 15px;
    }
}
.footer-container{
    display: flex;
    flex-direction: row;
    gap:30px;
    justify-content: center;
}

.footer-links {
    max-width: 40%;
    justify-self: center;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-left: 3px solid #c5a46d;
    padding-left: 20px;
}

.footer-title {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links-list {
    list-style: none;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px; 
}

.footer-links-list li {
    width: auto;
}

.footer-links-list a {
    text-decoration: none;
    color: #ddd;

    display: flex;
    align-items: center;
    gap: 6px;

    white-space: nowrap; /* evita que se corten en 2 líneas */
}

.footer-links-list a:hover {
    color: white;
}

.footer-links-list i {
    font-size: 14px;
}
.footer-links-list i{
    color: var(--color-accent-dark)
}
#footer-img{
    justify-self: center;
    align-self: center;
}
@media (max-width: 768px) {
    .footer-links-list {
        flex-direction: column;
        justify-content: center;
    }
    .footer-links{
        max-width: 100%;
        text-align: center;
        border-left:none;
        border-bottom: 3px solid #c5a46d;
        padding-bottom: 20px;;
    }
    .footer-container{
        flex-direction: column-reverse;
    }
    .footer-links-list li a{
        justify-self: center;
    }
}