/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4a574;
    --secondary-color: #8b6f47;
    --font-primary: 'Playfair Display', serif;
    --font-second: sans-serif;
    --text-color: #4a4a4a;
    --white: #ffffff;
    --dark-color: #2c2c2c;
    --azul-debi: #115e75;
    --error-color: #e74c3c;
    --success-color: #27ae60;
}

body {
    font-family: var(--font-second);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--azul-debi);
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 15px 0;
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contenido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.nombre {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
}

.nombre h1 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.nombre span {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 400;
    letter-spacing: 2px;
    display: block;
    margin-bottom: -5px;
    text-align: center;
    font-style: italic;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.lista-nav {
    display: flex;
    list-style: none;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.lista-nav a {
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.lista-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.lista-nav a:hover::after {
    width: 100%;
}

.link-social {
    display: flex;
    gap: 20px;
}

.link-social a img {
    width: 25px;
    height: 25px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(233, 228, 228, 0.8);
    transform: translateY(-3px);
    border-radius: 30%;
}

/* Hero */
.contacto-hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #0d4f63;
}

.contacto-hero h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contacto-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Contenedor principal */
.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

/* Sección del formulario */
.formulario-seccion h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Grupos del formulario */
.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grupo label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
}

.form-grupo input,
.form-grupo textarea {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: var(--font-second);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all 0.3s ease;
}

.form-grupo input::placeholder,
.form-grupo textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-grupo input:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

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

/* Validación de errores */
.form-grupo input.error,
.form-grupo textarea.error {
    border-color: var(--error-color);
}

.error-mensaje {
    font-size: 0.85rem;
    color: var(--error-color);
    min-height: 20px;
    display: block;
}

/* Botón enviar */
.btn-enviar {
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-enviar:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-enviar:active {
    transform: translateY(-1px);
}

.btn-enviar:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
}

/* Mensaje de respuesta */
.mensaje-respuesta {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.mensaje-respuesta.exito {
    display: block;
    background-color: rgba(39, 174, 96, 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.mensaje-respuesta.error-envio {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

/* Sección de información */
.info-seccion h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.info-icono {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-contenido h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-contenido p,
.info-contenido a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-contenido a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-contenido a:hover {
    color: var(--primary-color);
}

.info-nota {
    font-size: 0.85rem !important;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Redes en contacto */
.redes-contacto {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
}

.redes-contacto h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.redes-iconos {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.redes-iconos a img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.redes-iconos a:hover img {
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background-color: #0a3d4d;
    padding: 60px 40px 20px 40px;
    margin-top: 40px;
}

.footer-contenido {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 90%;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-columna h3,
.footer-columna h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 1.8rem !important;
    letter-spacing: 2px;
}

.footer-columna p,
.footer-columna li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 2;
}

.footer-columna ul {
    list-style: none;
    padding: 0;
}

.footer-columna ul a,
.footer-columna p a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}

.footer-columna ul a:hover,
.footer-columna p a:hover {
    color: var(--primary-color);
}

.footer-redes {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.footer-redes a img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    opacity: 0.75;
}

.footer-redes a:hover img {
    transform: translateY(-3px);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    max-width: 90%;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* Arreglar autocompletado de navegador */
.form-grupo input:-webkit-autofill,
.form-grupo input:-webkit-autofill:hover,
.form-grupo input:-webkit-autofill:focus,
.form-grupo textarea:-webkit-autofill,
.form-grupo textarea:-webkit-autofill:hover,
.form-grupo textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--white);
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset;
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset;
    transition: background-color 5000s ease-in-out 0s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contacto-container {
        padding: 40px 20px;
    }

    .contacto-hero h2 {
        font-size: 2rem;
    }

    .footer-contenido {
        grid-template-columns: 1fr 1fr;
    }

    .contenido-header {
        flex-direction: column;
        gap: 15px;
    }

    .nombre h1 {
        font-size: 1.8rem;
    }

    .lista-nav {
        gap: 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-contenido {
        grid-template-columns: 1fr;
    }
}
