/* Estilos específicos para contacto.html */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 80px;
}

html {
    scroll-behavior: smooth;
}

main {
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.nav {
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav__container {
    width: min(90%, 1200px);
    margin: 0 auto;
    align-items: center;
    display: flex;
    align-content: center;
    justify-content: space-between;
    height: 80px;
    --icon-toggle-menu: url("./assets/menu.svg");
    --transform-menu-show: translate(-100%);
}

.nav__container:has(.nav__input:checked) {
    --icon-toggle-menu: url("./assets/close.svg");
    --transform-menu-show: translate(0);
}

.nav__figure {
    z-index: 10;
}

.nav__figure img {
    height: 50px;
}

.nav__toggle {
    width: 40px;
    height: 40px;
    background-image: var(--icon-toggle-menu);
    filter: invert(1); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: background-image .5s;
    cursor: pointer;
    z-index: 10;
    border: none;
    background-color: transparent;
}

.nav__list {
    transform: var(--transform-menu-show);
    list-style: none;
    background-color: black;
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 2.5rem;
    text-align: center;
    transition: .5s transform;
    margin: 0;
    padding: 0;
    z-index: 9;
}

.nav__input {
    height: 40px;
    width: 40px;
    display: none;
}

.nav__link {
    color: aliceblue;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #1a4d7a;
}

/* Desktop Navigation */
@media (width > 756px) {
    .nav__toggle {
        display: none;
    }
    
    .nav__list {
        position: static;
        transform: translate(0);
        background-color: transparent;
        display: flex;
        gap: 2rem;
        align-items: center;
        justify-content: flex-end;
    }
    
    .nav__link {
        color: #4A90E2;
        font-size: 1rem;
        transition: color 0.3s;
    }
    
    .nav__link:hover {
        color: #357ABD;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 20px 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: #4A90E2;
    font-weight: 700;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    width: auto;
    max-width: 100%;
}

.btn-primary {
    background-color: #4A90E2;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    padding: 80px 20px;
}

.contact-section .section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group.focused label {
    color: #4A90E2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ddd;
    font-weight: 500;
    transition: color 0.3s;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox personalizado */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: #ddd;
    line-height: 1.6;
    transition: color 0.3s;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 0;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.checkbox-text {
    flex: 1;
    font-size: 0.95rem;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 18px;
    margin-top: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Contact Info Section */
.contact-info-section {
    background-color: #fff;
    padding: 60px 20px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #4A90E2;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-info-card h3 {
    color: #1a4d7a;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-info-card a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-info-card a:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* Responsive para contacto */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 20px;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}

