/* Estilos para la página de contacto */

:root {
    --primary: #00B8C8;
    --accent: #FF9F1C;
    --neutral-dark: #2E3A47;
    --neutral-medium: #8D99AE;
    --neutral-light: #F8F9FA;
    --whatsapp: #25D366;
    --facebook: #1877F2;
    --instagram: #E4405F;
    --twitter: #1DA1F2;
    --linkedin: #0A66C2;
    --youtube: #FF0000;
    --pinterest: #BD081C;
    --transition-normal: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--neutral-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 5rem 0;
}

/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--neutral-light);
}

.btn-primary:hover {
    background-color: #e04a30;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--neutral-dark);
    border: 1px solid var(--neutral-dark);
}

.btn-secondary:hover {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--neutral-light);
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/contact-hero.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 0;
    margin-top: 80px; /* Ajuste para el header fijo */
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .contact-hero {
        padding: 6rem 0 4rem;
        margin-top: 70px; /* Altura del header en móvil */
    }
    
    .contact-hero .container {
        padding-top: 1rem;
    }
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease forwards;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Info Cards */
.contact-info {
    background-color: var(--primary);
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: fadeIn 0.8s ease forwards;
    animation-fill-mode: both;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-container {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 184, 200, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    transition: transform var(--transition-normal);
}

.contact-card:hover .icon-container {
    transform: scale(1.1);
}

.contact-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.contact-card p {
    margin-bottom: 1.5rem;
    color: var(--neutral-medium);
}

.whatsapp-card .icon-container {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp);
}

.btn-architect.small {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.btn-architect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-architect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-architect:hover {
    color: white;
}

.btn-architect:hover::before {
    width: 100%;
}

.btn-architect .btn-icon {
    margin-left: 0.5rem;
}

/* Contact Form Section */
.contact-form-section {
    background-color: var(--neutral-dark);
    padding: 5rem 0;
}

.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease forwards;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.form-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.form-header p {
    color: var(--neutral-medium);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 184, 200, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-architect .btn-text {
    position: relative;
    z-index: 1;
}

.btn-architect .btn-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-architect:hover .btn-icon {
    transform: translateX(5px);
}

/* Social Media Section */
.social-media-section {
    text-align: center;
    padding: 5rem 0;
    background-color: var(--neutral-light);
}

.social-media-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.social-media-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.social-media-section > p {
    color: var(--neutral-medium);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-decoration: none;
    color: var(--neutral-dark);
    animation: fadeIn 0.8s ease forwards;
    animation-fill-mode: both;
}

.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }
.social-card:nth-child(5) { animation-delay: 0.5s; }
.social-card:nth-child(6) { animation-delay: 0.6s; }

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.social-card .social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.social-card p {
    color: var(--neutral-medium);
    font-size: 0.9rem;
}

/* Social Media Colors */
.social-card.facebook .social-icon {
    color: var(--facebook);
    background-color: rgba(24, 119, 242, 0.1);
}

.social-card.facebook:hover .social-icon {
    background-color: var(--facebook);
    color: white;
}

.social-card.instagram .social-icon {
    color: var(--instagram);
    background-color: rgba(228, 64, 95, 0.1);
}

.social-card.instagram:hover .social-icon {
    background-color: var(--instagram);
    color: white;
}

.social-card.twitter .social-icon {
    color: var(--twitter);
    background-color: rgba(29, 161, 242, 0.1);
}

.social-card.twitter:hover .social-icon {
    background-color: var(--twitter);
    color: white;
}

.social-card.linkedin .social-icon {
    color: var(--linkedin);
    background-color: rgba(10, 102, 194, 0.1);
}

.social-card.linkedin:hover .social-icon {
    background-color: var(--linkedin);
    color: white;
}

.social-card.youtube .social-icon {
    color: var(--youtube);
    background-color: rgba(255, 0, 0, 0.1);
}

.social-card.youtube:hover .social-icon {
    background-color: var(--youtube);
    color: white;
}

.social-card.pinterest .social-icon {
    color: var(--pinterest);
    background-color: rgba(189, 8, 28, 0.1);
}

.social-card.pinterest:hover .social-icon {
    background-color: var(--pinterest);
    color: white;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    line-height: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--neutral-dark);
    color: white;
    padding: 4rem 0;
}

.newsletter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.newsletter-content {
    flex: 1;
    min-width: 300px;
}

.newsletter-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-form .btn-architect {
    background-color: var(--primary);
    color: white;
    border: none;
}

.newsletter-form .btn-architect:hover {
    background-color: #00a0af;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .contact-hero {
        padding: 4rem 0;
    }
    
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.6rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Footer */
footer {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-column p {
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}